void ButnNext_Click(object sender, RoutedEventArgs e) { if (!CheckInputNumber()) { return; } //新建机器 List <ObjectItem> tempObjItem = WizardHelper.ListAllObjectItem.Where(p => p.Type == 1).ToList(); int ReadyMachineNumber = WizardHelper.ListAllConfigObjects.Where(p => p.ObjectType == 210).ToList().Count(); int j = 0; for (; j < tempObjItem.Count; j++) { ConfigGroup tempCG = tempObjItem[j].Data as ConfigGroup; if (tempCG.GroupID == 1 && tempCG.ChildType == 210) { int MinValue = tempCG.GroupInfo.IntValue01; int MaxValue = tempCG.GroupInfo.IntValue02; if ((ReadyMachineNumber + TotalMachineNumber) > MaxValue || (ReadyMachineNumber + TotalMachineNumber) < MinValue) { CurrentApp.ShowInfoMessage(CurrentApp.GetLanguageInfo("1110N008", "超过个数,不能增加")); return; } for (int i = 0; i < TotalMachineNumber; i++) { //ListConfigObject.Add(WizardHelper.CreateNewConfigObject(tempCG.ConfigObject, 210)); ListConfigObject.Add(tempCG.ConfigObject); } break; } } //进入下一个配置界面 UCWizardMachineConfig ucwizard = new UCWizardMachineConfig(); ucwizard.CurrentApp = CurrentApp; ucwizard.MainPage = MainPage; ucwizard.PrePage = this; ucwizard.TotalMachineNumber = TotalMachineNumber; ucwizard.mListSaveConfigObject = ListConfigObject; ucwizard.WizardHelper = this.WizardHelper; //ucwizard.ListConfigObjects = ListConfigObjects; MainPage.PopupPanel.Title = "Config Wizard"; MainPage.PopupPanel.Content = ucwizard; MainPage.PopupPanel.IsOpen = true; }