public void ExitWindow() { Exit = true; if (ParentWindow != null) { ParentWindow.Draw(); } //else //System.Environment.Exit(1); }
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; }
public void Draw() { if (ParentWindow != null) { ParentWindow.Draw(); } ReDraw(); foreach (var input in Inputs) { input.Draw(); } if (CurrentlySelected != null) { CurrentlySelected.Select(); } // SetSelected(); }