diff options
| author | Alex-TIMEHACK <[email protected]> | 2017-04-30 15:46:36 +0100 |
|---|---|---|
| committer | Alex-TIMEHACK <[email protected]> | 2017-04-30 15:46:36 +0100 |
| commit | 12c253ab76b8117a563b021e969262da13eaec9d (patch) | |
| tree | e6a99881473b838873ecc91659b480594bcfcff5 /TimeHACK.Engine/TaskBarController.cs | |
| parent | c56b38e8b2b8729d91a1ad96839b042af480eabe (diff) | |
| download | histacom2-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.cs | 43 |
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; + } + } +} |
