Пример #1
0
        public static void MinimizeInterface(string interfaceName)
        {
            PrimaryInterface primaryInterface = null;

            if (mInterfaceLookup.TryGetValue(interfaceName, out primaryInterface))
            {
                primaryInterface.Minimize();
            }
        }
Пример #2
0
 public static void MinimizeAllBut(string interfaceName)
 {
     for (int i = 0; i < GUIManager.Get.PrimaryInterfaces.Count; i++)
     {
         PrimaryInterface primaryInterface = GUIManager.Get.PrimaryInterfaces[i] as PrimaryInterface;
         if (primaryInterface.Name != interfaceName && primaryInterface.Maximized)
         {
             primaryInterface.Minimize();
         }
     }
 }
Пример #3
0
 public static bool MinimizeAll()
 {
     for (int i = 0; i < GUIManager.Get.PrimaryInterfaces.Count; i++)
     {
         PrimaryInterface primaryInterface = GUIManager.Get.PrimaryInterfaces[i] as PrimaryInterface;
         if (!primaryInterface.Minimize())
         {
             return(false);
         }
     }
     return(true);
 }