Beispiel #1
0
        public UserRoutes()
        {

            _isInitialized = false;
            InitializeComponent();
            _isInitialized = true;
            _salesmanRoutesViewModel = DataContext as SalesmanRoutesViewModel;
            LabelControls();


        }
Beispiel #2
0
 void UserRoutes_Loaded(object sender, RoutedEventArgs e)
 {
     _salesmanRoutesViewModel = DataContext as SalesmanRoutesViewModel;
     _salesmanRoutesViewModel.ClearAndSetupCommand.Execute(null);
 }
Beispiel #3
0
 /// <summary>
 /// Provides a deterministic way to create the SalesmanRoutesViewModel property.
 /// </summary>
 public static void CreateSalesmanRoutesViewModel()
 {
     if (_SalesmanRoutesViewModel == null)
     {
         _SalesmanRoutesViewModel = new SalesmanRoutesViewModel();
     }
 }
Beispiel #4
0
 /// <summary>
 /// Provides a deterministic way to delete the SalesmanRoutesViewModel property.
 /// </summary>
 public static void ClearSalesmanRoutesViewModel()
 {
     _SalesmanRoutesViewModel.Cleanup();
     _SalesmanRoutesViewModel = null;
 }