private void buttonUpd_Click(object sender, EventArgs e)
 {
     if (dataGridViewExecutors.SelectedRows.Count == 1)
     {
         var form = new FormExecutor
         {
             Id = Convert.ToInt32(dataGridViewExecutors.SelectedRows[0].Cells[0].Value)
         };
         form.ShowDialog();
     }
 }
        private void buttonAdd_Click(object sender, EventArgs e)
        {
            var form = new FormExecutor();

            form.ShowDialog();
        }