Exemplo n.º 1
0
 private void button_add_Click(object sender, EventArgs e)
 {
     Form_Add form_add = new Form_Add();
     form_add.Owner = this;
     form_add.ShowDialog();
     dataGridView.refresh(Program.connectionstring);
 }
Exemplo n.º 2
0
 private void dataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         Form_Add form_add = new Form_Add(Convert.ToInt32(dataGridView.Rows[e.RowIndex].Cells["on_id"].Value));
         form_add.Owner = this;
         form_add.ShowDialog();
         dataGridView.refresh(Program.connectionstring);
     }
     catch { }
 }