领胜LDS 键盘AOI检测项目
xcd
2020-07-10 71bc53bd043d272ded70635fdaade22f3c288605
src/Bro.UI.Config/MenuForms/FrmConfig.cs
@@ -53,7 +53,11 @@
        private void buttonCreateConfig_Click(object sender, EventArgs e)
        {
            string pCode = Interaction.InputBox("请输入产品编码", "产品编码", "", 0, 0);
            ProductionCodeEditForm productionCodeEditForm = new ProductionCodeEditForm();
            if (productionCodeEditForm.ShowDialog(this) == DialogResult.OK)
            {
                string pCode = productionCodeEditForm.PCode;
                productionCodeEditForm.Dispose();
            if (string.IsNullOrWhiteSpace(pCode))
            {
                MessageBox.Show("请输入产品编码!");
@@ -62,6 +66,8 @@
            Process.CreateNewConfig(propGrid.SelectedObject as IProcessConfig, pCode);
            MessageBox.Show("创建新配置完成");
            PubSubCenter.GetInstance().Publish(PubSubCenterMessageType.UpdateProductionCodes.ToString(), null, null);
            }
        }
    }
}