//Отбор менеджеров по дате начала работы private void filterStartWorkDateBtn_Click(object sender, EventArgs e) { try { fullName.Text = ""; managersTable.DataSource = null; DBConnection.FilterStartWorkDate(date1.Value.ToString("yyyy-MM-dd"), date2.Value.ToString("yyyy-MM-dd")); managersTable.DataSource = DBConnection.dtManagers; if (DBConnection.dtManagers.Rows.Count > 0) { ReadManagersTableRow(0); } } catch (Exception ex) { exceptPanel.Visible = true; richTextBox1.Text = ex.ToString(); } }