Esempio n. 1
0
 public EditRoute()
 {
     InitializeComponent();
     _vm = this.DataContext as EditRouteViewModel;
     LabelControls();
     this.Loaded += new RoutedEventHandler(EditRoute_Loaded);
 }
Esempio n. 2
0
 /// <summary>
 /// Provides a deterministic way to create the ViewModelPropertyName property.
 /// </summary>
 public static void CreateEditRouteViewModel()
 {
     if (_editRouteViewModel == null)
     {
         _editRouteViewModel = new EditRouteViewModel();
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Provides a deterministic way to delete the ViewModelPropertyName property.
 /// </summary>
 public static void ClearEditRouteViewModel()
 {
     _editRouteViewModel.Cleanup();
     _editRouteViewModel = null;
 }