예제 #1
0
 /// <summary>
 /// Provides a deterministic way to create the ListUsersViewModel property.
 /// </summary>
 public static void CreateListUsersViewModel()
 {
     if (_listUsersViewModel == null)
     {
         _listUsersViewModel = new ListUsersViewModel();
     }
 }
예제 #2
0
 /// <summary>
 /// Provides a deterministic way to delete the ListUsersViewModel property.
 /// </summary>
 public static void ClearListUsersViewModel()
 {
     _listUsersViewModel.Cleanup();
     _listUsersViewModel = null;
 }