Exemple #1
0
        private void editToolStripMenuItem_Click(object sender, EventArgs e)
        {
            int patientId = int.Parse(patientsListView.SelectedItems[0].Tag.ToString());
            PatientEntryForm patientEntryForm = new PatientEntryForm("Update", patientId);

            patientEntryForm.Show();
        }
 private void editToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (patientsListView.SelectedItems.Count>0)
     {
         int patientId = int.Parse(patientsListView.SelectedItems[0].Tag.ToString());
         PatientEntryForm patientEntryForm = new PatientEntryForm("Update", patientId);
         Close();
         patientEntryForm.Show();
     }
     else
     {
         MessageBox.Show("You must Select a row");
     }
 }
Exemple #3
0
 private void editToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (patientsListView.SelectedItems.Count > 0)
     {
         int patientId = int.Parse(patientsListView.SelectedItems[0].Tag.ToString());
         PatientEntryForm patientEntryForm = new PatientEntryForm("Update", patientId);
         Close();
         patientEntryForm.Show();
     }
     else
     {
         MessageBox.Show("You must Select a row");
     }
 }
 private void addNewPatientButton_Click(object sender, EventArgs e)
 {
     PatientEntryForm patientEntryForm=new PatientEntryForm(null,0);
     patientEntryForm.Show();
 }