예제 #1
0
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex > -1 && e.ColumnIndex > -1)
     {
         int id = int.Parse(this.dataGridView1.CurrentRow.Cells["Column1"].Value.ToString());
         Add add = new Add(id,this);
         add.Show();
     }
 }
예제 #2
0
 private void btnadd_Click(object sender, EventArgs e)
 {
     add = new Add(0,this);
     add.Owner = this;
     add.ShowDialog();
 }