Esempio n. 1
0
        private void SetMinimizedState()
        {
            List <Gui.Core.Control> controlList = new List <Client.Logic.Gui.Core.Control>();

            controlList = GetAllControls(controlList, true, this);
            for (int i = 0; i < controlList.Count; i++)
            {
                controlList[i].RemoveEvents();
            }
            mWindowState = WindowManager.WindowState.Minimized;
            Globals.GameScreen.TaskBar.Redraw();
        }
Esempio n. 2
0
 private void SetNormalState()
 {
     if (mWindowState == WindowManager.WindowState.Minimized)
     {
         List <Gui.Core.Control> controlList = new List <Client.Logic.Gui.Core.Control>();
         controlList = GetAllControls(controlList, true, this);
         for (int i = 0; i < controlList.Count; i++)
         {
             controlList[i].AddEvents();
         }
     }
     mWindowState = WindowManager.WindowState.Normal;
     InitBuffer();
     Globals.GameScreen.TaskBar.Redraw();
 }
Esempio n. 3
0
 private void SetMaximizedState()
 {
     if (mWindowState == WindowManager.WindowState.Minimized)
     {
         List <Gui.Core.Control> controlList = new List <Client.Logic.Gui.Core.Control>();
         controlList = GetAllControls(controlList, true, this);
         for (int i = 0; i < controlList.Count; i++)
         {
             controlList[i].AddEvents();
         }
     }
     mWindowState       = WindowManager.WindowState.Maximized;
     mPrevFullBounds    = mFullBounds;
     mPrevControlBounds = mControlBounds;
     this.Location      = new Point(0, 0);
     this.Size          = mMaximizedControlBounds.Size;
     InitBuffer();
     Globals.GameScreen.TaskBar.Redraw();
 }
Esempio n. 4
0
 private void SetNormalState()
 {
     if (mWindowState == WindowManager.WindowState.Minimized) {
         List<Gui.Core.Control> controlList = new List<Client.Logic.Gui.Core.Control>();
         controlList = GetAllControls(controlList, true, this);
         for (int i = 0; i < controlList.Count; i++) {
             controlList[i].AddEvents();
         }
     }
     mWindowState = WindowManager.WindowState.Normal;
     InitBuffer();
     Globals.GameScreen.TaskBar.Redraw();
 }
Esempio n. 5
0
 private void SetMinimizedState()
 {
     List<Gui.Core.Control> controlList = new List<Client.Logic.Gui.Core.Control>();
     controlList = GetAllControls(controlList, true, this);
     for (int i = 0; i < controlList.Count; i++) {
         controlList[i].RemoveEvents();
     }
     mWindowState = WindowManager.WindowState.Minimized;
     Globals.GameScreen.TaskBar.Redraw();
 }
Esempio n. 6
0
 private void SetMaximizedState()
 {
     if (mWindowState == WindowManager.WindowState.Minimized) {
         List<Gui.Core.Control> controlList = new List<Client.Logic.Gui.Core.Control>();
         controlList = GetAllControls(controlList, true, this);
         for (int i = 0; i < controlList.Count; i++) {
             controlList[i].AddEvents();
         }
     }
     mWindowState = WindowManager.WindowState.Maximized;
     mPrevFullBounds = mFullBounds;
     mPrevControlBounds = mControlBounds;
     this.Location = new Point(0, 0);
     this.Size = mMaximizedControlBounds.Size;
     InitBuffer();
     Globals.GameScreen.TaskBar.Redraw();
 }