Interaction logic for WindowTutor.xaml
Inheritance: System.Windows.Window
Beispiel #1
0
 private void Method_AddTutor()
 {
     try
     {
         WindowTutor winT = new WindowTutor();
         if (winT.ShowDialog().Value)
         {
             AdditionalContacts listContacts = new AdditionalContacts();
             if (winT.Skype != "")
             {
                 listContacts.Add("skype", winT.Skype);
             }
             if (winT.Telephon != "")
             {
                 listContacts.Add("tel", winT.Telephon);
             }
             MessageBox.Show("!!!! " + winT.Group);
             proxy.addTutor(winT.Login, "123456", winT.Fio, winT.Email, listContacts, 2, Convert.ToInt32(winT.Group));
             LoadTutors();
         }
     }
     catch (Exception err)
     {
         MessageBox.Show(err.Message);
     }
 }
Beispiel #2
0
 private void Method_AddTutor()
 {
     try
     {
         WindowTutor winT = new WindowTutor();
         if (winT.ShowDialog().Value)
         {
             AdditionalContacts listContacts = new AdditionalContacts();
             if(winT.Skype != "")
                 listContacts.Add("skype", winT.Skype);
             if(winT.Telephon != "")
                 listContacts.Add("tel", winT.Telephon);
             MessageBox.Show("!!!! " + winT.Group);
             proxy.addTutor(winT.Login, "123456", winT.Fio, winT.Email, listContacts, 2, Convert.ToInt32(winT.Group));
             LoadTutors();
         }
     }
     catch (Exception err)
     {
         MessageBox.Show(err.Message);
     }
 }