示例#1
0
        private void editPatientAction()
        {
            Patient         selectedRecord = patientsList.SelectedRows[0].DataBoundItem as Patient;
            PatientInfoForm pif            = new PatientInfoForm(selectedRecord.Id);

            pif.ShowDialog();

            if (pif.Result != null)
            {
                selectedRecord.CopyPatient(pif.Result);
                patientsList.Refresh();
            }
        }
示例#2
0
        private void patientsTable_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            Patient         selectedRecord = patientsTable.SelectedRows[0].DataBoundItem as Patient;
            PatientInfoForm pif            = new PatientInfoForm(selectedRecord.Id);

            pif.ShowDialog();

            if (pif.Result != null)
            {
                selectedRecord.CopyPatient(pif.Result);
                patientsTable.Refresh();
            }
        }
示例#3
0
        private void addPatientButton_Click(object sender, EventArgs e)
        {
            PatientInfoForm pf = new PatientInfoForm();

            pf.ShowDialog();

            if (pf.Result != null)
            {
                allPatientsList.Add(pf.Result);
                filteredPatientList.Add(pf.Result);
                patientsList.Refresh();
            }
        }