Пример #1
0
        private void btnAddComission_Click(object sender, EventArgs e)
        {
            var form = new AddChangeComission();

            form.ShowDialog();
            UpdateGrids();
        }
Пример #2
0
 private void editComissionToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (dgvCommissions.CurrentRow != null)
     {
         var commissionId = Convert.ToInt32(dgvCommissions.CurrentRow.Cells[0].Value);
         var form         = new AddChangeComission(commissionId);
         form.ShowDialog();
         UpdateGrids();
     }
     else
     {
         MessageBox.Show("Выберите коммисию для показа");
     }
 }