void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.myWizard = ((SmartLCT.Frm_Guide_two)(target)); #line 19 "..\..\..\Frm_Guide_two.xaml" this.myWizard.Closed += new System.EventHandler(this.Window_Closed); #line default #line hidden return; case 2: this.LayoutRoot = ((System.Windows.Controls.Grid)(target)); return; case 3: this.CheckBox_CreateEmptyProject = ((System.Windows.Controls.CheckBox)(target)); return; case 4: this.grid = ((System.Windows.Controls.Grid)(target)); return; case 5: this.button_ImportReceiveSize = ((System.Windows.Controls.Button)(target)); return; case 6: this.ComboBox_SenderType = ((System.Windows.Controls.ComboBox)(target)); return; case 7: this.ComboBox_ReceiveSize = ((System.Windows.Controls.ComboBox)(target)); return; case 8: this.numericUpDown_Row = ((Nova.Wpf.Control.NumericUpDown)(target)); return; case 9: this.numericUpDown_Cols = ((Nova.Wpf.Control.NumericUpDown)(target)); return; case 10: this.RadioButton_LTH = ((System.Windows.Controls.RadioButton)(target)); return; case 11: this.RadioButton_RBH = ((System.Windows.Controls.RadioButton)(target)); return; case 12: this.RadioButton_LBV = ((System.Windows.Controls.RadioButton)(target)); return; case 13: this.RadioButton_LBH = ((System.Windows.Controls.RadioButton)(target)); return; case 14: this.RadioButton_RTV = ((System.Windows.Controls.RadioButton)(target)); return; case 15: this.RadioButton_RTH = ((System.Windows.Controls.RadioButton)(target)); return; case 16: this.RadioButton_LTV = ((System.Windows.Controls.RadioButton)(target)); return; case 17: this.RadioButton_RBV = ((System.Windows.Controls.RadioButton)(target)); return; case 18: this.button_create = ((System.Windows.Controls.Button)(target)); return; case 19: this.button_cancel = ((System.Windows.Controls.Button)(target)); return; } this._contentLoaded = true; }
private void OnShowGuideTwo(NotificationMessageAction<ConfigurationData> info) { ConfigurationData dataInfo = info.Target as ConfigurationData; Frm_Guide_two frm_Guide_Two = new Frm_Guide_two(dataInfo.OperateType); frm_Guide_Two.Owner = Application.Current.MainWindow; frm_Guide_Two.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner; frm_Guide_Two.ShowDialog(); ConfigurationData data = frm_Guide_Two.GetConfigData(); if (data != null) { info.Execute(data); //////如果是要创建显示屏则创建 //if (dataInfo.OperateType == OperateScreenType.CreateScreen) //{ // MainWindow win = new MainWindow(data); // win.Owner = this; // win.ShowDialog(); //} ////如果是要更新显示屏,则返回信息 //else if (dataInfo.OperateType == OperateScreenType.UpdateScreen) //{ // info.Execute(data); //} } }