コード例 #1
0
ファイル: MainFunction.cs プロジェクト: JIANGJIASHIUN/OOAD2.0
 private void ClickEditDeptButton(object sender, EventArgs e)
 {
     this.SetAllEditDeptVariableToPM();
     _deptController = new DepartmentController(_deptPresentationModel);
     if(_deptController.editDepartment())
     {
         this.setAllDeptEditToNotEnable();
         this.ResetEditDeptUI();
     }
 }
コード例 #2
0
ファイル: MainFunction.cs プロジェクト: JIANGJIASHIUN/OOAD2.0
        // 按下新增部門資料按鈕
        private void ClickAddDeptButton(object sender, EventArgs e)
        {
            this.SetAllNewDeptVariableToPM();

            _deptController = new DepartmentController(_deptPresentationModel);
            _deptController.AddDepartment();
            this.ResetNewDeptUI();
            this.departmentTableAdapter.Fill(this.deptDataSet.department);

        }
コード例 #3
0
ファイル: MainFunction.cs プロジェクト: JIANGJIASHIUN/OOAD2.0
        private void ClickSearchDeptButton(object sender, EventArgs e)
        {
            String deptID = _editDeptIDTB.Text;
            _deptPresentationModel.setDepartmentID(deptID);

            _deptController = new DepartmentController(_deptPresentationModel);
            _deptPresentationModel = _deptController.SearchDepartmentByID();

            if (_deptPresentationModel.getDepartmentID() == null || _deptPresentationModel.getDepartmentID() == "")
                return;

            this.SetAllDeptEditToEnable();
            this.ResetSearchEditDeptUI();
        }