Ejemplo n.º 1
0
        // 按下搜尋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();
            }
        }
Ejemplo n.º 2
0
 // 按下edit bonus def button
 private void ClickEditBonusDefButton(object sender, EventArgs e)
 {
     this.SetAllEditBonusDefVariableToPM();
     this._bonusDefController = new BonusDefController(this._bonusDefPresentationModel);
     if (_bonusDefController.EditBonusDef())
     {
         this.ResetEditBonusDefUI();
     }
 }
Ejemplo n.º 3
0
 // 按下新增bonus def button
 private void ClickAddBonusDefButton(object sender, EventArgs e)
 {
     if (SetAllNewBonusDefVariableToPM())
     {
         _bonusDefController = new BonusDefController(_bonusDefPresentationModel);
         _bonusDefController.AddBonusDef();
     }
 }