aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Engine/TaskBarController.cs
diff options
context:
space:
mode:
authorAlex-TIMEHACK <[email protected]>2017-04-30 15:46:36 +0100
committerAlex-TIMEHACK <[email protected]>2017-04-30 15:46:36 +0100
commit12c253ab76b8117a563b021e969262da13eaec9d (patch)
treee6a99881473b838873ecc91659b480594bcfcff5 /TimeHACK.Engine/TaskBarController.cs
parentc56b38e8b2b8729d91a1ad96839b042af480eabe (diff)
downloadhistacom2-12c253ab76b8117a563b021e969262da13eaec9d.tar.gz
histacom2-12c253ab76b8117a563b021e969262da13eaec9d.tar.bz2
histacom2-12c253ab76b8117a563b021e969262da13eaec9d.zip
Half done the taskbars
Diffstat (limited to 'TimeHACK.Engine/TaskBarController.cs')
-rw-r--r--TimeHACK.Engine/TaskBarController.cs43
1 files changed, 43 insertions, 0 deletions
diff --git a/TimeHACK.Engine/TaskBarController.cs b/TimeHACK.Engine/TaskBarController.cs
new file mode 100644
index 0000000..a24d73e
--- /dev/null
+++ b/TimeHACK.Engine/TaskBarController.cs
@@ -0,0 +1,43 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using System.Drawing;
+
+namespace TimeHACK.Engine
+{
+ public class TaskBarController
+ {
+ public static int AvalibleApplicationID;
+
+ public Panel AddTaskbarItem95(int ApplicationID, string ApplicationName, Image ApplicationIcon, UserControl taskbar_item, Panel oldPanel)
+ {
+ Panel returnPanel = oldPanel;
+
+ AvalibleApplicationID++;
+
+ taskbar_item.BackgroundImage = ApplicationIcon;
+ taskbar_item.Tag = ApplicationName;
+ taskbar_item.Dock = DockStyle.Left;
+ returnPanel.Controls.Add(taskbar_item);
+
+ return returnPanel;
+ }
+
+ public List<Form> GetAllOpenApps()
+ {
+ List<Form> AppsList = new List<Form>();
+ foreach (Form form in Application.OpenForms)
+ {
+ if ((string)form.Tag != "ignoreFormOnTaskbar")
+ {
+ AppsList.Add(form);
+ }
+ }
+
+ return AppsList;
+ }
+ }
+}