Beispiel #1
0
 /// <summary>
 /// Provides a deterministic way to create the DispatchProductsViewModel property.
 /// </summary>
 public static void CreateDispatchProductsViewModel()
 {
     if (_DispatchProductsViewModel == null)
     {
         _DispatchProductsViewModel =new DispatchProductsViewModel();
     }
 }
 void DispatchProducts_Loaded(object sender, RoutedEventArgs e)
 {
     _vm = DataContext as DispatchProductsViewModel;
     _vm.ClearAndSetUp();
     Localizelabels();
 }
Beispiel #3
0
 /// <summary>
 /// Provides a deterministic way to delete the DispatchProductsViewModel property.
 /// </summary>
 public static void ClearDispatchProductsViewModel()
 {
     _DispatchProductsViewModel.Cleanup();
     _DispatchProductsViewModel = null;
 }