public void CloseDesigner() { if (Designer.HasUnsavedChanges() == false || CanExitDesignerWithUnsavedChanges()) { Designer.SetSaved(); View.DisplayMain(); } }