public ProfileViewModel(ILoadResourceData <StatesData> loadResourceData, IProfileSettingService profileSettingService) { this.loadResourceData = loadResourceData; this.profileSettingService = profileSettingService; profile = new Profile(); backHomeCommand = new MvxCommand(() => { ShowViewModel <HomeViewModel>(); }); addLicenseCommand = new MvxCommand(() => { ShowViewModel <LicenseViewModel>(); }); showCreditCardsCommand = new MvxCommand(() => { ShowCreditCards(); }); States = loadResourceData.GetData("Tollminder.Core.states.json"); }
public ProfileViewModel() { loadResourceData = Mvx.Resolve <ILoadResourceData <StatesData> >(); profileSettingService = Mvx.Resolve <IProfileSettingService>(); profile = new Profile(); backHomeCommand = new MvxCommand(() => { ShowViewModel <HomeViewModel>(); }); addLicenseCommand = new MvxCommand(() => { ShowViewModel <LicenseViewModel>(); }); addCreditCardCommand = new MvxCommand(() => { ShowViewModel <CreditCardViewModel>(); }); States = loadResourceData.GetData("Tollminder.Core.states.json"); }
public LicenseViewModel() { loadStatesData = Mvx.Resolve <ILoadResourceData <StatesData> >(); profileSettingService = Mvx.Resolve <IProfileSettingService>(); profile = new Profile(); driverLicense = new DriverLicense(); States = loadStatesData.GetData("Tollminder.Core.states.json"); loadVehicleData = Mvx.Resolve <ILoadResourceData <string> >(); VehicleClasses = loadVehicleData.GetData(); SelectedVehicleClass = VehicleClasses[firstElement]; backToProfileCommand = new MvxCommand(() => { ShowViewModel <ProfileViewModel>(); }); }
public LicenseViewModel(ILoadResourceData <StatesData> loadStatesData, ILoadResourceData <string> loadVehicleData, IProfileSettingService profileSettingService) { this.loadStatesData = loadStatesData; this.profileSettingService = profileSettingService; profile = new Profile(); driverLicense = new DriverLicense(); States = loadStatesData.GetData("Tollminder.Core.states.json"); this.loadVehicleData = loadVehicleData; VehicleClasses = loadVehicleData.GetData(); SelectedVehicleClass = VehicleClasses[firstElement]; backToProfileCommand = new MvxCommand(() => { ShowViewModel <ProfileViewModel>(); }); }