public TaskBarButton(Windows.Core.Window parentWindow) { mWindow = parentWindow; this.Size = new System.Drawing.Size(140, 15); base.AddEvents(); this.OnClick += new EventHandler <SdlDotNet.Input.MouseButtonEventArgs>(TaskBarButton_OnClick); }
public TaskBarButton(Windows.Core.Window parentWindow) { mWindow = parentWindow; this.Size = new System.Drawing.Size(140, 15); base.AddEvents(); this.OnClick += new EventHandler<SdlDotNet.Input.MouseButtonEventArgs>(TaskBarButton_OnClick); }
private TaskBarButton FindWindowButton(Windows.Core.Window windowToFind) { for (int i = 0; i < mButtons.Count; i++) { if (mButtons[i].AttachedWindow == windowToFind) { return(mButtons[i]); } } return(null); }
public void RemoveButton(Windows.Core.Window windowToRemove) { TaskBarButton button = FindWindowButton(windowToRemove); if (button != null) { button.Close(); mButtons.Remove(button); Init(); } }