public void restartVehicleCommand()
        {
            var openVehiclesViewController = new VehiclesViewController(socket, this);

            fleetManagementViewModel.ActiveViewModel = openVehiclesViewController.Initialize();

            fleetManagementViewModel.NewCommand    = new RelayCommand(openVehiclesViewController.ExecuteNewVehicleCommand);
            fleetManagementViewModel.SaveCommand   = new RelayCommand(openVehiclesViewController.ExecuteSaveVehicleCommand);
            fleetManagementViewModel.DeleteCommand = new RelayCommand(openVehiclesViewController.ExecuteDeleteVehicleCommand, openVehiclesViewController.CanExecuteDeleteCommand);
        }
Exemplo n.º 2
0
        private void ExecuteOpenVehiclesCommand(object obj)
        {
            var openVehiclesViewController = new VehiclesViewController();

            fleetManagementViewModel.NewCommand    = new RelayCommand(ExecuteNewCommand);
            fleetManagementViewModel.SaveCommand   = new RelayCommand(ExecuteSaveCommand);
            fleetManagementViewModel.DeleteCommand = new RelayCommand(ExecuteDeleteCommand);

            fleetManagementViewModel.ActiveViewModel = openVehiclesViewController.Initialize();
        }