Пример #1
0
 public void ExitWindow()
 {
     Exit = true;
     if (ParentWindow != null)
     {
         ParentWindow.Draw();
     }
     //else
     //System.Environment.Exit(1);
 }
Пример #2
0
        public void Close()
        {
            if (ParentWindow != null)
            {
                ParentWindow.Draw();
                if (ParentWindow._childWindows.Contains(this))
                {
                    ParentWindow._childWindows.Remove(this);
                }
            }

            _controls     = null;
            ParentWindow  = null;
            ContainingApp = null;
            _hasExited    = true;
        }
Пример #3
0
        public void Draw()
        {
            if (ParentWindow != null)
            {
                ParentWindow.Draw();
            }

            ReDraw();

            foreach (var input in Inputs)
            {
                input.Draw();
            }

            if (CurrentlySelected != null)
            {
                CurrentlySelected.Select();
            }
            // SetSelected();
        }