示例#1
0
 private void _dgv1_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     try
     {
         AddEditNomForAcc aeNFA = new AddEditNomForAcc(_dgv1.Rows[_dgv1.SelectedCells[0].RowIndex].Cells["nom_id"].Value.ToString(), _dgv1.Rows[_dgv1.SelectedCells[0].RowIndex].Cells["nom_name"].Value.ToString(), _dgv1.Rows[_dgv1.SelectedCells[0].RowIndex].Cells["nom_group_id"].Value.ToString(), _dgv1.Rows[_dgv1.SelectedCells[0].RowIndex].Cells["nom_type"].Value.ToString(), _dgv1.Rows[_dgv1.SelectedCells[0].RowIndex].Cells["dilCost_sum"].Value.ToString(), _dgv1.Rows[_dgv1.SelectedCells[0].RowIndex].Cells["nom_seq"].Value.ToString(), _dgv1.Rows[_dgv1.SelectedCells[0].RowIndex].Cells["nom_year1"].Value.ToString(), _dgv1.Rows[_dgv1.SelectedCells[0].RowIndex].Cells["nom_year2"].Value.ToString());
         aeNFA.ShowDialog();
     }
     catch
     {
         MessageBox.Show("Не удалось войти в режим редактирования.", "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
示例#2
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     AddEditNomForAcc aeNFA = new AddEditNomForAcc();
     aeNFA.ShowDialog();
 }