Beispiel #1
0
 private void ClearAll()
 {
     try
     {
         ClientFIOTB.Clear();
         birthDateDTP.Value  = DateTime.Now;
         cbSex.SelectedIndex = -1;
         AddressTB.Clear();
     }
     catch (Exception ex)
     {
         logger.Error(ex, $"\r\n#---------#\r\n{ex.StackTrace}\r\n##---------##\r\n{ex.Message}\r\n###---------###\r\n{ex.Source}");
         MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 private void Cleaner()
 {
     FirstNameChild.Clear();
     LastNameChild.Clear();
     MiddleNameChild.Clear();
     FirstNameParent.Clear();
     LastNameParent.Clear();
     MiddleNameParent.Clear();
     TelephoneNumber.Clear();
     Snils.Clear();
     Pfdo.Clear();
     ProgramTB.Clear();
     ClassTB.Clear();
     Shift.Clear();
     School.Clear();
     AddressTB.Clear();
     EducatorTB.Clear();
 }