Ejemplo n.º 1
0
 /// <summary>
 /// Provides a deterministic way to create the ForestNatureViewModel property.
 /// </summary>
 public static void CreateForestNatureViewModel()
 {
     if (_forestNatureViewModel == null)
     {
         _forestNatureViewModel = new ForestNatureViewModel();
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Provides a deterministic way to delete the ForestNatureViewModel property.
 /// </summary>
 public static void ClearForestNatureViewModel()
 {
     _forestNatureViewModel.Cleanup();
     _forestNatureViewModel = null;
 }