private void buttonConfirmCfg_Click(object sender, EventArgs e) { try { if (!string.IsNullOrWhiteSpace(this.cbx_PanelSize.Text)) { this.productCfgModel.facePanelSize = int.Parse(this.cbx_PanelSize.Text); } if (!string.IsNullOrWhiteSpace(this.cbx_BasesizeLevel.Text)) { this.productCfgModel.baseSizeLevel = int.Parse(this.cbx_BasesizeLevel.Text); } if (this.curCmd == EnumCmd.修改配置) { presenter.ModifyProductCfg(productCfgModel); } else if (this.curCmd == EnumCmd.增加配置) { presenter.AddProductCfg(productCfgModel); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void buttonConfirmCfg_Click(object sender, EventArgs e) { if (this.curCmd == EnumCmd.修改配置) { presenter.ModifyProductCfg(productCfgModel); } else if (this.curCmd == EnumCmd.增加配置) { presenter.AddProductCfg(productCfgModel); } }