コード例 #1
0
 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();
     }
 }
コード例 #2
0
        private void buttonAdd_Click(object sender, EventArgs e)
        {
            var form = new FormExecutor();

            form.ShowDialog();
        }