private void dgvRegion_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (isHeader(e.RowIndex)) { return; } int idReg = Convert.ToInt32(dgvRegion.Rows[e.RowIndex].Cells[0].Value); Regions reg = new Regions(idReg); RegionAddEdit regAE = new RegionAddEdit(reg); regAE.ShowDialog(); }
private void add_Click(object sender, EventArgs e) { RegionAddEdit regAE = new RegionAddEdit(); regAE.ShowDialog(); }