private void dgvSortings_SelectionChanged(object sender, EventArgs e)
 {
     btnDelete.Enabled = dgvSortings.SelectedRows.Count != 0;
     if (dgvSortings.SelectedRows.Count != 0)
     {
         DatabaseController.LoadData(dvgIterations, dgvSortings.SelectedRows[0].Index);
     }
 }
 public DatabaseForm(StartForm main)
 {
     InitializeComponent();
     MainForm = main;
     DatabaseController.LoadData(dgvSortings);
 }