Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
        public void RemoveButton(Windows.Core.Window windowToRemove)
        {
            TaskBarButton button = FindWindowButton(windowToRemove);

            if (button != null)
            {
                button.Close();
                mButtons.Remove(button);
                Init();
            }
        }