public AddPatientForm(Home _owner) { owner = _owner; InitializeComponent(); save_edits_btn.Visible = false; fillCheckBoxList(); }
public AddPatientForm(int id, Home _owner) { gid = id; InitializeComponent(); save_btn.Visible = false; owner = _owner; fillFormFromPatient(id); }
public PatientInfoForm(int id, Home _owner) { InitializeComponent(); owner = _owner; var service = new PatientService(); patient = service.getPatientById(id); name_txt.Text = patient.name; id_txt.Text = patient.id.ToString(); age_txt.Text = patient.dateOfBirth != DateTime.MinValue ? service.dateofBirthToAge(patient.dateOfBirth).ToString() : ""; gender_txt.Text = patient.gender; phone_txt.Text = patient.phone; if (patient.medical_history != null) { medicalHistory_txt.Text = patient.medical_history + "."; } else { medicalHistory_txt.Text = "None."; } fillGridView(); edit_visit_btn.Enabled = true; }