// 按下搜尋bonus def button private void ClickSearchBonusDefButton(object sender, EventArgs e) { String bonusDefID = _editBonusDefIDTB.Text; this._bonusDefPresentationModel.SetBonusDefID(bonusDefID); this._bonusDefController = new BonusDefController(this._bonusDefPresentationModel); this._bonusDefPresentationModel = this._bonusDefController.SearchDataByBonusDefID(); if (this._bonusDefPresentationModel.GetBonusDefID() != null) { this.ResetAllEditUIToEnable(); this.SetAllEditBonusDefVariableFormPM(); } }
// 按下edit bonus def button private void ClickEditBonusDefButton(object sender, EventArgs e) { this.SetAllEditBonusDefVariableToPM(); this._bonusDefController = new BonusDefController(this._bonusDefPresentationModel); if (_bonusDefController.EditBonusDef()) { this.ResetEditBonusDefUI(); } }
// 按下新增bonus def button private void ClickAddBonusDefButton(object sender, EventArgs e) { if (SetAllNewBonusDefVariableToPM()) { _bonusDefController = new BonusDefController(_bonusDefPresentationModel); _bonusDefController.AddBonusDef(); } }