| | |
| | | |
| | | 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("请输入产品编码!"); |
| | |
| | | Process.CreateNewConfig(propGrid.SelectedObject as IProcessConfig, pCode); |
| | | MessageBox.Show("创建新配置完成"); |
| | | PubSubCenter.GetInstance().Publish(PubSubCenterMessageType.UpdateProductionCodes.ToString(), null, null); |
| | | |
| | | } |
| | | } |
| | | } |
| | | } |