/// <summary> /// Provides a deterministic way to create the MainWindowViewModel property. /// </summary> public static void CreateMainWindowViewModel() { if (_mainWindowViewModel == null) { _mainWindowViewModel = new MainWindowViewModel(); } }
/// <summary> /// Provides a deterministic way to delete the MainWindowViewModel property. /// </summary> public static void ClearMainWindowViewModel() { _mainWindowViewModel.Cleanup(); _mainWindowViewModel = null; }