예제 #1
0
        private void btnAddGateo_Click(object sender, EventArgs e)
        {
            var selectedPatient       = (MyPatientsList)lvPatients.SelectedItems[0].Tag;
            AddEditGateoForm addGateo = new AddEditGateoForm(selectedPatient.hosp_id);

            addGateo.ShowDialog();
            loadGateo();
        }
예제 #2
0
 private void btnEditGateo_Click(object sender, EventArgs e)
 {
     if (lvGateo.SelectedItems.Count == 0)
     {
         MessageBox.Show("Please select a GATE-O entry", "Error");
         return;
     }
     else
     {
         var selectedPatient        = (MyPatientsList)lvPatients.SelectedItems[0].Tag;
         AddEditGateoForm editGateo = new AddEditGateoForm(Convert.ToInt32(lvGateo.SelectedItems[0].Tag), selectedPatient.hosp_id);
         editGateo.ShowDialog();
         loadGateo();
     }
 }