private void BtAddNowEmpl_Click(object sender, RoutedEventArgs e)
 {
     if (CheckData() == false)
     {
         MessageBox.Show("Не все поля заполнены");
     }
     else
     {
         employee = new Employee()
         {
             Surname          = tbFamily.Text,
             Name             = tbName.Text,
             Patronymic       = tbParentName.Text,
             Salary           = Convert.ToInt32(tbSalary.Text),
             DataOfEmployment = DateOfEmployeement,
             DateOfDismiss    = DateOfDismiss,
             Post             = tbPost.Text,
             TabelNumber      = tbTabelNumber.Text,
         };
         AddNewEmpl?.Invoke(employee);
         Setsource?.Invoke();
         btSave.IsEnabled               = false;
         tbTabelNumber.IsEnabled        = false;
         tbFamily.IsEnabled             = false;
         tbName.IsEnabled               = false;
         tbParentName.IsEnabled         = false;
         dtDateOfEmployeement.IsEnabled = false;
         dtDateOfDismiss.IsEnabled      = false;
         tbSalary.IsEnabled             = false;
         tbPost.IsEnabled               = false;
         btSave.IsEnabled               = false;
         btChangeEmpl.IsEnabled         = false;
         btAddNowEmpl.IsEnabled         = true;
     }
 }
 public void SetSourceLBUsers()
 {
     Setsource?.Invoke();
 }