コード例 #1
0
ファイル: FrmDepartment.cs プロジェクト: xuyangbing/iSmartOAS
        private void btnDepartmentAdd_Click(object sender, EventArgs e)
        {
            FrmDepartmentEdit departmentEdit = new FrmDepartmentEdit();

            departmentEdit.ShowUpdate += new DisplayUpdate(this.FrmInitialization);
            departmentEdit.Tag         = 0;
            departmentEdit.ShowDialog();
        }
コード例 #2
0
ファイル: FrmDepartment.cs プロジェクト: xuyangbing/iSmartOAS
        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();
        }