コード例 #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;
        }
コード例 #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;
 }
コード例 #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";
 }
コード例 #4
0
 public SignUpViewModel()
 {
     actions = new FormPersonActions();
 }
コード例 #5
0
 public LogInViewModel()
 {
     actions = new FormPersonActions();
 }
コード例 #6
0
        public PatientViewModel(int id)
        {
            actions = new FormPersonActions();

            patientList = new ObservableCollection <patient>();
        }