Example #1
0
 /// <summary>
 /// Provides a deterministic way to create the ReorderLevelViewModel property.
 /// </summary>
 public static void CreateReorderLevelViewModel()
 {
     if (_reorderLevelViewModel == null)
     {
         _reorderLevelViewModel = new ReorderLevelViewModel();
     }
 }
Example #2
0
 void ReorderLevel_Loaded(object sender, RoutedEventArgs e)
 {
     _vm = DataContext as ReorderLevelViewModel;
     _vm.LoadReorderLevels();
 }
Example #3
0
 /// <summary>
 /// Provides a deterministic way to delete the ReorderLevelViewModel property.
 /// </summary>
 public static void ClearReorderLevelViewModel()
 {
     _reorderLevelViewModel.Cleanup();
     _reorderLevelViewModel = null;
 }