private void btnDepartmentAdd_Click(object sender, EventArgs e) { FrmDepartmentEdit departmentEdit = new FrmDepartmentEdit(); departmentEdit.ShowUpdate += new DisplayUpdate(this.FrmInitialization); departmentEdit.Tag = 0; departmentEdit.ShowDialog(); }
private void btnDepartmentUpdate_Click(object sender, EventArgs e) { object id = this.DataGridViwShow.CurrentRow.Cells[0].Value; FrmDepartmentEdit departmentEdit = new FrmDepartmentEdit(); departmentEdit.ShowUpdate += new DisplayUpdate(this.FrmInitialization); departmentEdit.Tag = id; departmentEdit.ShowDialog(); }