private void BanButton_Click(object sender, EventArgs e)
 {
     try
     {
         Client client = Shop.SearchClient((string)ClientsGrid.SelectedRows[0].Cells[1].Value);
         foreach (var dep in Shop.Deposits)
         {
             if (dep.Client == client)
             {
                 dep.DateTimeBuyOut = dep.DateTime;
             }
         }
         DateCheck.PerformClick();
         Shop.BannedUsers.Add(client.Email);
         Shop.Clients.Remove(client);
         ClientBindingSource.ResetBindings(false);
     }
     catch
     {
     }
 }
 private void checkDatesToolStripMenuItem_Click(object sender, EventArgs e)
 {
     DateCheck.PerformClick();
 }