public FornPersonViewModel() { actions = new FormPersonActions(); UserType = new ObservableCollection <string>(); UserType.Add("Doctor"); UserType.Add("Admin"); UserType.Add("Patient"); _doctorsList = new ObservableCollection <doctor>(); IsAdmin = "Visible"; IsDoctor = true; IsPatient = true; Existing = false; }
public FornPersonViewModel(patient patient, bool existing) { _patient = patient; actions = new FormPersonActions(); UserType = new ObservableCollection <string>(); _doctorsList = new ObservableCollection <doctor>(); UserType.Add("Doctor"); UserType.Add("Admin"); UserType.Add("Patient"); FullName = patient.fullname; Adress = patient.personinformation.adress; Email = patient.personinformation.email; PhoneNumber = patient.personinformation.phone; Existing = true; IsAdmin = "Visible"; IsDoctor = false; PatientVisibilty = "Visible"; SelectedDoctor = patient.doctor; }
public FornPersonViewModel(doctor doc, bool existing) { _doc = doc; actions = new FormPersonActions(); UserType = new ObservableCollection <string>(); _doctorsList = new ObservableCollection <doctor>(); UserType.Add("Doctor"); UserType.Add("Admin"); UserType.Add("Patient"); FullName = doc.fullname; Adress = doc.personinformation.adress; Email = doc.personinformation.email; PhoneNumber = doc.personinformation.phone; Existing = true; IsAdmin = "Hidden"; IsDoctor = true; PatientVisibilty = "Visible"; SelectedUserType = "Patient"; }
public SignUpViewModel() { actions = new FormPersonActions(); }
public LogInViewModel() { actions = new FormPersonActions(); }
public PatientViewModel(int id) { actions = new FormPersonActions(); patientList = new ObservableCollection <patient>(); }