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