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