Beispiel #1
0
 /// <summary>
 /// Provides a deterministic way to create the SelectApprovedOrdersViewModel property.
 /// </summary>
 public static void CreateSelectApprovedOrdersViewModel()
 {
     if (_selectApprovedOrdersViewModel == null)
     {
         _selectApprovedOrdersViewModel = new SelectApprovedOrdersViewModel();
     }
 }
 void SelectApprovedOrders_Loaded(object sender, RoutedEventArgs e)
 {
     LocalizeLabels();
     _vm = this.DataContext as SelectApprovedOrdersViewModel;
     _vm.LoadOrders.Execute(null);
 }
Beispiel #3
0
 /// <summary>
 /// Provides a deterministic way to delete the SelectApprovedOrdersViewModel property.
 /// </summary>
 public static void ClearSelectApprovedOrdersViewModel()
 {
     _selectApprovedOrdersViewModel.Cleanup();
     _selectApprovedOrdersViewModel = null;
 }