Пример #1
0
 public EditIANView()
 {
     InitializeComponent();
     _vm = this.DataContext as EditIANViewModel;
     LabelControls();
     Loaded += new RoutedEventHandler(EditIANView_Loaded);
 }
Пример #2
0
 /// <summary>
 /// Provides a deterministic way to create the EditIANViewModel property.
 /// </summary>
 public static void CreateEditIANViewModel()
 {
     if (_EditIANViewModel == null)
     {
         _EditIANViewModel = new EditIANViewModel();
     }
 }
Пример #3
0
 /// <summary>
 /// Provides a deterministic way to delete the EditIANViewModel property.
 /// </summary>
 public static void ClearEditIANViewModel()
 {
     _EditIANViewModel.Cleanup();
     _EditIANViewModel = null;
 }