Esempio n. 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (listBox1.SelectedIndex != -1)
     {
         ShowMedicalCard SMC = new ShowMedicalCard(Editor.GetId(listBox1.SelectedItem.ToString()));
         iShowMedicalCard = SMC;
         MedicalCardOpen?.Invoke(this, EventArgs.Empty);
         SMC.ShowDialog();
     }
 }
Esempio n. 2
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (listBox1.SelectedIndex != -1)
     {
         ShowMedicalCard SMC = new ShowMedicalCard(Editor.GetId(listBox1.SelectedItem.ToString()));
         showMedicalCard = SMC;
         MedicalCardOpen?.Invoke(this, EventArgs.Empty);
         SMC.Show();
     }
     else
     {
         MessageBox.Show("Выберите пациента из списка ниже!", "Ошибка!", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }