Beispiel #1
0
 /// <summary>
 /// Provides a deterministic way to create the EditContactViewModel property.
 /// </summary>
 public static void CreateEditContactViewModel()
 {
     if (_editContactViewModelPropertyName == null)
     {
         _editContactViewModelPropertyName = new EditContactViewModel();
     }
 }
Beispiel #2
0
 /// <summary>
 /// Provides a deterministic way to delete the EditContactViewModel property.
 /// </summary>
 public static void ClearEditContactViewModel()
 {
     _editContactViewModelPropertyName.Cleanup();
     _editContactViewModelPropertyName = null;
 }