예제 #1
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     if (FIO.Text != "")
     {
         using (ModelBD md = new ModelBD())
         {
             var        pat        = md.Patients.Where(p => p.FIO.Equals(FIO.Text)).FirstOrDefault();
             AddPatient addPatient = AddPatient.getInst(pat.ID, Shtr.Text);
             addPatient.Show();
         }
     }
     else
     {
         MessageBox.Show("Введите имя пользователя!");
     }
 }
예제 #2
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            AddPatient addPatient = AddPatient.getInst(Shtr.Text);

            addPatient.Show();
        }