示例#1
0
        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();
        }
示例#2
0
        private void add_Click(object sender, EventArgs e)
        {
            RegionAddEdit regAE = new RegionAddEdit();

            regAE.ShowDialog();
        }