Example #1
0
        private void btnDepartmentAdd_Click(object sender, EventArgs e)
        {
            FrmDepartmentEdit departmentEdit = new FrmDepartmentEdit();

            departmentEdit.ShowUpdate += new DisplayUpdate(this.FrmInitialization);
            departmentEdit.Tag         = 0;
            departmentEdit.ShowDialog();
        }
Example #2
0
        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();
        }