diff options
| author | Alex-TIMEHACK <[email protected]> | 2017-07-02 16:31:46 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-07-02 16:31:46 +0100 |
| commit | 3de51a2e1b9224e8a8355e3945e458e1651821a9 (patch) | |
| tree | ec0016f90351794301e8eda68e77fb9766f5f9fb /TimeHACK.Main/Program.cs | |
| parent | 69ae842e6e3193a27b0294f92784ef97eb69fb37 (diff) | |
| parent | 99938de884fcf0dd572a330145dd91686268a45f (diff) | |
| download | histacom2-3de51a2e1b9224e8a8355e3945e458e1651821a9.tar.gz histacom2-3de51a2e1b9224e8a8355e3945e458e1651821a9.tar.bz2 histacom2-3de51a2e1b9224e8a8355e3945e458e1651821a9.zip | |
Merge pull request #108 from Alex-TIMEHACK/master
Made the Windows folder have SOMETHING in it
Diffstat (limited to 'TimeHACK.Main/Program.cs')
| -rw-r--r-- | TimeHACK.Main/Program.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/TimeHACK.Main/Program.cs b/TimeHACK.Main/Program.cs index ea1936f..e488108 100644 --- a/TimeHACK.Main/Program.cs +++ b/TimeHACK.Main/Program.cs @@ -12,6 +12,7 @@ using TimeHACK.OS.Win95; using TimeHACK.OS.Win95.Win95Apps; using TimeHACK.Engine; using TimeHACK.Engine.Template; +using System.Drawing; namespace TimeHACK { @@ -27,6 +28,9 @@ namespace TimeHACK public static string WindowsExplorerReturnPath; static WindowManager wm = new WindowManager(); + public static List<WinClassic> nonimportantapps = new List<WinClassic>(); + public static int currentappcount = 0; + /// <summary> /// The main entry point for the application. /// Run TitleScreen.cs at launch. @@ -114,5 +118,15 @@ namespace TimeHACK } } + + public static void AddTaskbarItem(Form Application, string ApplicationID, string ApplicationName, Image ApplicationIcon) + { + TitleScreen.frm95.AddTaskBarItem(Application, ApplicationID, ApplicationName, ApplicationIcon); + } + + public static void NonImportantApp_Closing(object sender, FormClosingEventArgs e) + { + Program.nonimportantapps.Remove((WinClassic)sender); + } } } |
