Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
 private void buttonConfirmCfg_Click(object sender, EventArgs e)
 {
     if (this.curCmd == EnumCmd.修改配置)
     {
         presenter.ModifyProductCfg(productCfgModel);
     }
     else if (this.curCmd == EnumCmd.增加配置)
     {
         presenter.AddProductCfg(productCfgModel);
     }
 }