Exemplo n.º 1
0
 private void AddButton(VisibleWindow window)
 {
     if (!_buttonMap.ContainsKey(window.Hwnd))
     {
         var btn = new TaskbarButton(window)
         {
             Height = GetButtonHeight(),
             Width  = GetButtonWidth(),
         };
         _flp.Controls.Add(btn);
         _buttonMap.Add(window.Hwnd, btn);
         window.ShowButtonOnTaskbar(false);
     }
 }
Exemplo n.º 2
0
 private void AddButton(VisibleWindow window)
 {
     if (!_buttonMap.ContainsKey(window.Hwnd))
     {
         var btn = new TaskbarButton(window)
         {
             Height = GetButtonHeight(),
             Width = GetButtonWidth(),
         };
         _flp.Controls.Add(btn);
         _buttonMap.Add(window.Hwnd, btn);
         window.ShowButtonOnTaskbar(false);
     }
 }