Exemple #1
0
        private void hospitalPatientsTbl_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            IEnumerator it = hospitalPatientsTbl.SelectedRows.GetEnumerator();

            if (it.MoveNext())
            {
                DataGridViewRow  row              = (DataGridViewRow)it.Current;
                DataGridViewCell cell             = row.Cells[0];
                DdtHospital      hospitalSession  = service.GetDdtHospitalService().GetById(cell.Value.ToString());
                PatientAdmission admissionPatient = new PatientAdmission(this.service, hospitalSession);
                admissionPatient.ShowDialog();
            }
        }
Exemple #2
0
        private void patientAdmission_Click(object sender, EventArgs e)
        {
            PatientAdmission st = new PatientAdmission(service, null);

            st.ShowDialog();
        }