Exemplo n.º 1
0
 void EditITNView_Loaded(object sender, RoutedEventArgs e)
 {
     _vm = this.DataContext as EditITNViewModel;
     cmbSalesmen.IsEnabled = true;
     cmdSave.Visibility = Visibility.Collapsed;
     _vm.ClearViewModel();
     _vm.LoadSalesMenCommand.Execute(null);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Provides a deterministic way to create the EditITNViewModel property.
 /// </summary>
 public static void CreateEditITNViewModel()
 {
     if (_EditITNViewModel == null)
     {
         _EditITNViewModel = new EditITNViewModel();
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Provides a deterministic way to delete the EditITNViewModel property.
 /// </summary>
 public static void ClearEditITNViewModel()
 {
     _EditITNViewModel.Cleanup();
     _EditITNViewModel = null;
 }