领胜LDS 键盘AOI检测项目
wells.liu
2020-07-04 642cd31f0d1586a2a5ca6f9a3b3364725f4f1ecd
src/Bro.UI.Config/MenuForms/FrmConfig.cs
@@ -3,6 +3,8 @@
using System;
using Microsoft.VisualBasic;
using System.Windows.Forms;
using Bro.Common.PubSub;
using static Bro.Common.Helper.EnumHelper;
namespace Bro.UI.Config.MenuForms
{
@@ -51,13 +53,15 @@
        private void buttonCreateConfig_Click(object sender, EventArgs e)
        {
            string pCode = Interaction.InputBox("请输入产品编码", "产品编码", "", 100, 100);
            string pCode = Interaction.InputBox("请输入产品编码", "产品编码", "", 0, 0);
            if (string.IsNullOrWhiteSpace(pCode))
            {
                MessageBox.Show("请输入产品编码!");
                return;
            }
            Process.CreateNewConfig(propGrid.SelectedObject as IProcessConfig, pCode);
            MessageBox.Show("创建新配置完成");
            PubSubCenter.GetInstance().Publish(PubSubCenterMessageType.UpdateProductionCodes.ToString(), null, null);
        }
    }
}