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); } }
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); } }