Esempio n. 1
0
        public SearchCarViewModel()
        {
            _testDriveInfoService = new TestDriveInfoService();

            SearchCarCommand = new Command(SearchCar);
            MainMenuCommand  = new Command(MainMenu);
        }
Esempio n. 2
0
        public SignatureViewModel()
        {
            _testDriveInfoService = new TestDriveInfoService();

            SaveTestDriveCommand = new Command(SaveTestDriveAsync);
            MainMenuCommand      = new Command(NavigateToMainMenu);
        }
Esempio n. 3
0
        public EditCarInfoViewModel()
        {
            _testNumberPlateService = new TestDriveInfoService();

            MainMenuCommand     = new Command(NavigateToMainMenu);
            UpdateCarCommand    = new Command(UpdateCar);
            LoadCarImageCommand = new Command(LoadCarImage);
        }
Esempio n. 4
0
        public CarSelectionViewModel()
        {
            _testDriveInfoService = new TestDriveInfoService();

            MainMenuCommand  = new Command(NavigateToMainMenu);
            RemoveCarCommand = new Command(RemoveCarFromList);
            AddNewCarCommand = new Command(AddNewCar);

            LoadListOfCars();
        }
Esempio n. 5
0
        public ScanDrivingLicenseViewModel()
        {
            _testDriveInfoService = new TestDriveInfoService();

            IsLoading     = false;
            TestDriveInfo = new TestDriveInfo
            {
                StartDate = DateTime.Now,
                EndDate   = DateTime.Now
            };

            TakePictureCommand = new Command(TakePicture);
            ContinueCommand    = new Command(Continue);
            MainMenuCommand    = new Command(NavigateToMainMenu);
        }
        public ListOfCarsViewModel()
        {
            _testDriveInfoService = new TestDriveInfoService();

            MainMenuCommand = new Command(NavigateToMainMenu);
        }