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