Esempio n. 1
0
 /// <summary>
 /// Disables "minimize to tray" behavior for the specified Window.
 /// </summary>
 /// <param name="window">Window to enable the behavior for.</param>
 public static void DisableMinimizeToTray(Window window)
 {
     if (!MinimizeInstances.ContainsKey(window))
     {
         Console.WriteLine(string.Format("Minimization not enabled for '{0}'", window.Title));
     }
     else
     {
         var instance = MinimizeInstances[window];
         instance.Disable();
         MinimizeInstances.Remove(window);
     }
 }
Esempio n. 2
0
 public static void Disable(Window window)
 {
     UIHelpers.RevertHideFromAltTab(window);
     if (!MinimizeInstances.ContainsKey(window))
     {
         Console.WriteLine(string.Format("Minimization not enabled for '{0}'", window.Title));
     }
     else
     {
         var instance = MinimizeInstances[window];
         instance.Disable();
         MinimizeInstances.Remove(window);
     }
 }