public PatientRegisterViewModel(IPatientService patientService) { _patientService = patientService; Sexes = Enum.GetValues(typeof(Sex)).Cast <Sex>(); RegisterPatient = new RelayCommand(ExecuteRegistration); SelectedSex = Sexes.First(); }
public RegistrationViewModel(ApplicationManager appManager) { _appManager = appManager; _countriesRepository = new CountriesRepository(); SelectedCountry = Countries.First(); SelectedSex = Sexes.First(); SelectedAge = Ages.First(); }