Ejemplo n.º 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();
            }
        }
Ejemplo n.º 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();
            }
        }
Ejemplo n.º 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();
            }
        }