/// <summary>
 /// Provides a deterministic way to delete the MainViewModel property.
 /// </summary>
 public static void ClearMainViewModel()
 {
     _mainViewModel.Cleanup();
     _mainViewModel = null;
 }
 /// <summary>
 /// Provides a deterministic way to create the MainViewModel property.
 /// </summary>
 public static void CreateMainViewModel()
 {
     if (_mainViewModel == null)
     {
         _mainViewModel = new MainViewModel();
     }
 }