Пример #1
0
 /// <summary>
 /// Provides a deterministic way to create the ViewModelPropertyName property.
 /// </summary>
 public static void CreateAllEventsViewModel()
 {
     if (_allEventsViewModel == null)
     {
         _allEventsViewModel = new AllEventsViewModel();
     }
 }
Пример #2
0
 /// <summary>
 /// Provides a deterministic way to delete the ViewModelPropertyName property.
 /// </summary>
 public static void ClearAllEventsViewModel()
 {
     _allEventsViewModel.Cleanup();
     _allEventsViewModel = null;
 }