コード例 #1
0
 private void b_modify_tuple_Click(object sender, EventArgs e)
 {
     if (b_active > 9 || b_active < 1)
     {
         MessageBox.Show("Error! Fault with button numeration in Main_Form.cs");
     }
     else
     {
         Row_Form     row_form      = new Row_Form(b_active, 1, TableGridView.SelectedRows[0].Cells); //tabela, 1 - kliknieto EDYTUJ, wybrana krotka do edycji
         DialogResult dialog_result = row_form.ShowDialog();
         if (dialog_result == DialogResult.OK)                                                        //Cancel -> x, anuluj
         {
             TableGridView_fill(b_active);
         }
     }
 }
コード例 #2
0
 private void b_add_tuple_Click(object sender, EventArgs e)
 {
     if (b_active > 9 || b_active < 1)
     {
         MessageBox.Show("Error! Fault with button numeration in Main_Form.cs");
     }
     else
     {
         Row_Form     row_form      = new Row_Form(b_active, 0, null);
         DialogResult dialog_result = row_form.ShowDialog();
         if (dialog_result == DialogResult.OK) //Cancel -> x, anuluj
         {
             TableGridView_fill(b_active);
         }
     }
 }