Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 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";
 }
Exemplo n.º 4
0
 public SignUpViewModel()
 {
     actions = new FormPersonActions();
 }
Exemplo n.º 5
0
 public LogInViewModel()
 {
     actions = new FormPersonActions();
 }
Exemplo n.º 6
0
        public PatientViewModel(int id)
        {
            actions = new FormPersonActions();

            patientList = new ObservableCollection <patient>();
        }