コード例 #1
0
ファイル: MainWindow.g.cs プロジェクト: qq5013/AGV_Server
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 10 "..\..\..\MainWindow.xaml"
     ((AGV_WPF.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
     
     #line default
     #line hidden
     
     #line 10 "..\..\..\MainWindow.xaml"
     ((AGV_WPF.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);
     
     #line default
     #line hidden
     return;
     case 2:
     this._loading = ((NS_LoadingWait.LoadingWait)(target));
     return;
     case 3:
     this.menu = ((System.Windows.Controls.Menu)(target));
     return;
     case 4:
     this.MenuAGVManager = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 5:
     this.AGVPara = ((System.Windows.Controls.MenuItem)(target));
     
     #line 40 "..\..\..\MainWindow.xaml"
     this.AGVPara.Click += new System.Windows.RoutedEventHandler(this.AGVPara_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.Mark = ((System.Windows.Controls.MenuItem)(target));
     
     #line 45 "..\..\..\MainWindow.xaml"
     this.Mark.Click += new System.Windows.RoutedEventHandler(this.Mark_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.Route = ((System.Windows.Controls.MenuItem)(target));
     
     #line 50 "..\..\..\MainWindow.xaml"
     this.Route.Click += new System.Windows.RoutedEventHandler(this.Route_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.Traffic = ((System.Windows.Controls.MenuItem)(target));
     
     #line 55 "..\..\..\MainWindow.xaml"
     this.Traffic.Click += new System.Windows.RoutedEventHandler(this.Traffic_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.WorkLine = ((System.Windows.Controls.MenuItem)(target));
     
     #line 60 "..\..\..\MainWindow.xaml"
     this.WorkLine.Click += new System.Windows.RoutedEventHandler(this.WorkLine_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.DockArea = ((System.Windows.Controls.MenuItem)(target));
     
     #line 65 "..\..\..\MainWindow.xaml"
     this.DockArea.Click += new System.Windows.RoutedEventHandler(this.DockArea_Click);
     
     #line default
     #line hidden
     return;
     case 11:
     this.ChargeArea = ((System.Windows.Controls.MenuItem)(target));
     
     #line 70 "..\..\..\MainWindow.xaml"
     this.ChargeArea.Click += new System.Windows.RoutedEventHandler(this.ChargeArea_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     this.Speed = ((System.Windows.Controls.MenuItem)(target));
     
     #line 75 "..\..\..\MainWindow.xaml"
     this.Speed.Click += new System.Windows.RoutedEventHandler(this.Speed_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     this.Custom = ((System.Windows.Controls.MenuItem)(target));
     
     #line 80 "..\..\..\MainWindow.xaml"
     this.Custom.Click += new System.Windows.RoutedEventHandler(this.Custom_Click);
     
     #line default
     #line hidden
     return;
     case 14:
     this.MenuCallManage = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 15:
     
     #line 87 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.CallManage_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     
     #line 92 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.CallAddressSet_Click);
     
     #line default
     #line hidden
     return;
     case 17:
     this.MenuSystemManage = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 18:
     
     #line 99 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.UserManage_Click);
     
     #line default
     #line hidden
     return;
     case 19:
     this.MenuSettings = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 20:
     this.ControlCOM = ((System.Windows.Controls.MenuItem)(target));
     
     #line 106 "..\..\..\MainWindow.xaml"
     this.ControlCOM.Click += new System.Windows.RoutedEventHandler(this.ControlCOM_Click);
     
     #line default
     #line hidden
     return;
     case 21:
     this.MCallCOM = ((System.Windows.Controls.MenuItem)(target));
     
     #line 111 "..\..\..\MainWindow.xaml"
     this.MCallCOM.Click += new System.Windows.RoutedEventHandler(this.CallCOM_Click);
     
     #line default
     #line hidden
     return;
     case 22:
     
     #line 118 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.PassWord_Click);
     
     #line default
     #line hidden
     return;
     case 23:
     
     #line 125 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exception_Click);
     
     #line default
     #line hidden
     return;
     case 24:
     
     #line 132 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Help_Click);
     
     #line default
     #line hidden
     return;
     case 25:
     
     #line 138 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.About_Click);
     
     #line default
     #line hidden
     return;
     case 26:
     this.lblTime = ((System.Windows.Controls.Primitives.StatusBarItem)(target));
     return;
     case 27:
     this.lblusername = ((System.Windows.Controls.Primitives.StatusBarItem)(target));
     return;
     case 28:
     this.imgSystem = ((System.Windows.Controls.Image)(target));
     return;
     case 29:
     this.lblsystemstate = ((System.Windows.Controls.Primitives.StatusBarItem)(target));
     return;
     case 30:
     this.imgCOM = ((System.Windows.Controls.Image)(target));
     return;
     case 31:
     this.lblcomstate = ((System.Windows.Controls.Primitives.StatusBarItem)(target));
     return;
     case 32:
     this.imgService = ((System.Windows.Controls.Image)(target));
     return;
     case 33:
     this.lblservicestate = ((System.Windows.Controls.Primitives.StatusBarItem)(target));
     return;
     case 34:
     this.imgClient = ((System.Windows.Controls.Image)(target));
     return;
     case 35:
     this.lblclientnum = ((System.Windows.Controls.Primitives.StatusBarItem)(target));
     return;
     case 36:
     this.background = ((System.Windows.Controls.Image)(target));
     return;
     case 37:
     this.canvas = ((System.Windows.Controls.ZoomableCanvas)(target));
     return;
     case 38:
     this.marquee = ((NS_Marquee.Marquee)(target));
     return;
     case 39:
     this.dataGrid = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 40:
     this.expanderMain = ((System.Windows.Controls.Expander)(target));
     
     #line 301 "..\..\..\MainWindow.xaml"
     this.expanderMain.MouseEnter += new System.Windows.Input.MouseEventHandler(this.expanderMain_MouseEnter);
     
     #line default
     #line hidden
     
     #line 301 "..\..\..\MainWindow.xaml"
     this.expanderMain.MouseLeave += new System.Windows.Input.MouseEventHandler(this.expanderMain_MouseLeave);
     
     #line default
     #line hidden
     return;
     case 41:
     this.textBlock12 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 42:
     this.cb_AgvNum = ((System.Windows.Controls.ComboBox)(target));
     
     #line 334 "..\..\..\MainWindow.xaml"
     this.cb_AgvNum.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cb_AgvNum_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 43:
     this.textBlock9 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 44:
     this.cb_Operation = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 45:
     this.label1 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 46:
     this.cb_Speed = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 47:
     this.textBlock11 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 48:
     this.cb_LineNum = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 49:
     this.btnControl = ((System.Windows.Controls.Button)(target));
     
     #line 355 "..\..\..\MainWindow.xaml"
     this.btnControl.Click += new System.Windows.RoutedEventHandler(this.btnControl_Click);
     
     #line default
     #line hidden
     return;
     case 50:
     this.cbautoshift = ((System.Windows.Controls.CheckBox)(target));
     
     #line 363 "..\..\..\MainWindow.xaml"
     this.cbautoshift.Checked += new System.Windows.RoutedEventHandler(this.cbautoshift_Checked);
     
     #line default
     #line hidden
     
     #line 363 "..\..\..\MainWindow.xaml"
     this.cbautoshift.Unchecked += new System.Windows.RoutedEventHandler(this.cbautoshift_Unchecked);
     
     #line default
     #line hidden
     return;
     case 51:
     this.tbpageinterval = ((System.Windows.Controls.TextBox)(target));
     
     #line 366 "..\..\..\MainWindow.xaml"
     this.tbpageinterval.AddHandler(System.Windows.DataObject.PastingEvent, new System.Windows.DataObjectPastingEventHandler(this.tbpageinterval_Pasting));
     
     #line default
     #line hidden
     
     #line 366 "..\..\..\MainWindow.xaml"
     this.tbpageinterval.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.tbpageinterval_PreviewKeyDown);
     
     #line default
     #line hidden
     
     #line 366 "..\..\..\MainWindow.xaml"
     this.tbpageinterval.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.tbpageinterval_PreviewTextInput);
     
     #line default
     #line hidden
     
     #line 366 "..\..\..\MainWindow.xaml"
     this.tbpageinterval.LostFocus += new System.Windows.RoutedEventHandler(this.tbpageinterval_LostFocus);
     
     #line default
     #line hidden
     return;
     case 52:
     this.btn_OpenSystem = ((System.Windows.Controls.Button)(target));
     
     #line 379 "..\..\..\MainWindow.xaml"
     this.btn_OpenSystem.Click += new System.Windows.RoutedEventHandler(this.btn_OpenSystem_Click);
     
     #line default
     #line hidden
     return;
     case 53:
     this.btn_CloseSystem = ((System.Windows.Controls.Button)(target));
     
     #line 380 "..\..\..\MainWindow.xaml"
     this.btn_CloseSystem.Click += new System.Windows.RoutedEventHandler(this.btn_CloseSystem_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\..\MainWindow - 复制.xaml"
                ((AGV_WPF.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 10 "..\..\..\MainWindow - 复制.xaml"
                ((AGV_WPF.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this._loading = ((NS_LoadingWait.LoadingWait)(target));
                return;

            case 3:
                this.menu = ((System.Windows.Controls.Menu)(target));
                return;

            case 4:
                this.MenuAGVManager = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 5:
                this.AGVPara = ((System.Windows.Controls.MenuItem)(target));

            #line 32 "..\..\..\MainWindow - 复制.xaml"
                this.AGVPara.Click += new System.Windows.RoutedEventHandler(this.AGVPara_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.Mark = ((System.Windows.Controls.MenuItem)(target));

            #line 37 "..\..\..\MainWindow - 复制.xaml"
                this.Mark.Click += new System.Windows.RoutedEventHandler(this.Mark_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.Route = ((System.Windows.Controls.MenuItem)(target));

            #line 42 "..\..\..\MainWindow - 复制.xaml"
                this.Route.Click += new System.Windows.RoutedEventHandler(this.Route_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.Traffic = ((System.Windows.Controls.MenuItem)(target));

            #line 47 "..\..\..\MainWindow - 复制.xaml"
                this.Traffic.Click += new System.Windows.RoutedEventHandler(this.Traffic_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.WorkLine = ((System.Windows.Controls.MenuItem)(target));

            #line 52 "..\..\..\MainWindow - 复制.xaml"
                this.WorkLine.Click += new System.Windows.RoutedEventHandler(this.WorkLine_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.DockArea = ((System.Windows.Controls.MenuItem)(target));

            #line 57 "..\..\..\MainWindow - 复制.xaml"
                this.DockArea.Click += new System.Windows.RoutedEventHandler(this.DockArea_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.ChargeArea = ((System.Windows.Controls.MenuItem)(target));

            #line 62 "..\..\..\MainWindow - 复制.xaml"
                this.ChargeArea.Click += new System.Windows.RoutedEventHandler(this.ChargeArea_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.Speed = ((System.Windows.Controls.MenuItem)(target));

            #line 67 "..\..\..\MainWindow - 复制.xaml"
                this.Speed.Click += new System.Windows.RoutedEventHandler(this.Speed_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.Custom = ((System.Windows.Controls.MenuItem)(target));

            #line 72 "..\..\..\MainWindow - 复制.xaml"
                this.Custom.Click += new System.Windows.RoutedEventHandler(this.Custom_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.MenuCallManage = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 15:

            #line 79 "..\..\..\MainWindow - 复制.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.CallManage_Click);

            #line default
            #line hidden
                return;

            case 16:

            #line 84 "..\..\..\MainWindow - 复制.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.CallAddressSet_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.MenuSystemManage = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 18:

            #line 91 "..\..\..\MainWindow - 复制.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.UserManage_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.MenuSettings = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 20:
                this.ControlCOM = ((System.Windows.Controls.MenuItem)(target));

            #line 98 "..\..\..\MainWindow - 复制.xaml"
                this.ControlCOM.Click += new System.Windows.RoutedEventHandler(this.ControlCOM_Click);

            #line default
            #line hidden
                return;

            case 21:
                this.MCallCOM = ((System.Windows.Controls.MenuItem)(target));

            #line 103 "..\..\..\MainWindow - 复制.xaml"
                this.MCallCOM.Click += new System.Windows.RoutedEventHandler(this.CallCOM_Click);

            #line default
            #line hidden
                return;

            case 22:

            #line 110 "..\..\..\MainWindow - 复制.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.PassWord_Click);

            #line default
            #line hidden
                return;

            case 23:

            #line 117 "..\..\..\MainWindow - 复制.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exception_Click);

            #line default
            #line hidden
                return;

            case 24:

            #line 124 "..\..\..\MainWindow - 复制.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Help_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.lblTime = ((System.Windows.Controls.Primitives.StatusBarItem)(target));
                return;

            case 26:
                this.lblusername = ((System.Windows.Controls.Primitives.StatusBarItem)(target));
                return;

            case 27:
                this.imgSystem = ((System.Windows.Controls.Image)(target));
                return;

            case 28:
                this.lblsystemstate = ((System.Windows.Controls.Primitives.StatusBarItem)(target));
                return;

            case 29:
                this.imgCOM = ((System.Windows.Controls.Image)(target));
                return;

            case 30:
                this.lblcomstate = ((System.Windows.Controls.Primitives.StatusBarItem)(target));
                return;

            case 31:
                this.background = ((System.Windows.Controls.Image)(target));
                return;

            case 32:
                this.canvas = ((System.Windows.Controls.ZoomableCanvas)(target));
                return;

            case 33:
                this.mScaleTf = ((System.Windows.Media.ScaleTransform)(target));
                return;

            case 34:
                this.mTranslateTf = ((System.Windows.Media.TranslateTransform)(target));
                return;

            case 35:
                this.marquee = ((NS_Marquee.Marquee)(target));
                return;

            case 36:
                this.dataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 37:
                this.textBlock12 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 38:
                this.cb_AgvNum = ((System.Windows.Controls.ComboBox)(target));

            #line 374 "..\..\..\MainWindow - 复制.xaml"
                this.cb_AgvNum.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cb_AgvNum_SelectionChanged);

            #line default
            #line hidden
                return;

            case 39:
                this.textBlock9 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 40:
                this.cb_Operation = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 41:
                this.label1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 42:
                this.cb_Speed = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 43:
                this.textBlock11 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 44:
                this.cb_LineNum = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 45:
                this.btnControl = ((System.Windows.Controls.Button)(target));

            #line 395 "..\..\..\MainWindow - 复制.xaml"
                this.btnControl.Click += new System.Windows.RoutedEventHandler(this.btnControl_Click);

            #line default
            #line hidden
                return;

            case 46:
                this.cbautoshift = ((System.Windows.Controls.CheckBox)(target));

            #line 403 "..\..\..\MainWindow - 复制.xaml"
                this.cbautoshift.Checked += new System.Windows.RoutedEventHandler(this.cbautoshift_Checked);

            #line default
            #line hidden
                return;

            case 47:
                this.tbpageinterval = ((System.Windows.Controls.TextBox)(target));
                return;

            case 48:
                this.btn_OpenSystem = ((System.Windows.Controls.Button)(target));

            #line 419 "..\..\..\MainWindow - 复制.xaml"
                this.btn_OpenSystem.Click += new System.Windows.RoutedEventHandler(this.btn_OpenSystem_Click);

            #line default
            #line hidden
                return;

            case 49:
                this.btn_CloseSystem = ((System.Windows.Controls.Button)(target));

            #line 420 "..\..\..\MainWindow - 复制.xaml"
                this.btn_CloseSystem.Click += new System.Windows.RoutedEventHandler(this.btn_CloseSystem_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #3
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 10 "..\..\..\MainWindow - 复制.xaml"
     ((AGV_WPF.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
     
     #line default
     #line hidden
     
     #line 10 "..\..\..\MainWindow - 复制.xaml"
     ((AGV_WPF.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);
     
     #line default
     #line hidden
     return;
     case 2:
     this._loading = ((NS_LoadingWait.LoadingWait)(target));
     return;
     case 3:
     this.menu = ((System.Windows.Controls.Menu)(target));
     return;
     case 4:
     this.MenuAGVManager = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 5:
     this.AGVPara = ((System.Windows.Controls.MenuItem)(target));
     
     #line 32 "..\..\..\MainWindow - 复制.xaml"
     this.AGVPara.Click += new System.Windows.RoutedEventHandler(this.AGVPara_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.Mark = ((System.Windows.Controls.MenuItem)(target));
     
     #line 37 "..\..\..\MainWindow - 复制.xaml"
     this.Mark.Click += new System.Windows.RoutedEventHandler(this.Mark_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.Route = ((System.Windows.Controls.MenuItem)(target));
     
     #line 42 "..\..\..\MainWindow - 复制.xaml"
     this.Route.Click += new System.Windows.RoutedEventHandler(this.Route_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.Traffic = ((System.Windows.Controls.MenuItem)(target));
     
     #line 47 "..\..\..\MainWindow - 复制.xaml"
     this.Traffic.Click += new System.Windows.RoutedEventHandler(this.Traffic_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.WorkLine = ((System.Windows.Controls.MenuItem)(target));
     
     #line 52 "..\..\..\MainWindow - 复制.xaml"
     this.WorkLine.Click += new System.Windows.RoutedEventHandler(this.WorkLine_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.DockArea = ((System.Windows.Controls.MenuItem)(target));
     
     #line 57 "..\..\..\MainWindow - 复制.xaml"
     this.DockArea.Click += new System.Windows.RoutedEventHandler(this.DockArea_Click);
     
     #line default
     #line hidden
     return;
     case 11:
     this.ChargeArea = ((System.Windows.Controls.MenuItem)(target));
     
     #line 62 "..\..\..\MainWindow - 复制.xaml"
     this.ChargeArea.Click += new System.Windows.RoutedEventHandler(this.ChargeArea_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     this.Speed = ((System.Windows.Controls.MenuItem)(target));
     
     #line 67 "..\..\..\MainWindow - 复制.xaml"
     this.Speed.Click += new System.Windows.RoutedEventHandler(this.Speed_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     this.Custom = ((System.Windows.Controls.MenuItem)(target));
     
     #line 72 "..\..\..\MainWindow - 复制.xaml"
     this.Custom.Click += new System.Windows.RoutedEventHandler(this.Custom_Click);
     
     #line default
     #line hidden
     return;
     case 14:
     this.MenuCallManage = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 15:
     
     #line 79 "..\..\..\MainWindow - 复制.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.CallManage_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     
     #line 84 "..\..\..\MainWindow - 复制.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.CallAddressSet_Click);
     
     #line default
     #line hidden
     return;
     case 17:
     this.MenuSystemManage = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 18:
     
     #line 91 "..\..\..\MainWindow - 复制.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.UserManage_Click);
     
     #line default
     #line hidden
     return;
     case 19:
     this.MenuSettings = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 20:
     this.ControlCOM = ((System.Windows.Controls.MenuItem)(target));
     
     #line 98 "..\..\..\MainWindow - 复制.xaml"
     this.ControlCOM.Click += new System.Windows.RoutedEventHandler(this.ControlCOM_Click);
     
     #line default
     #line hidden
     return;
     case 21:
     this.MCallCOM = ((System.Windows.Controls.MenuItem)(target));
     
     #line 103 "..\..\..\MainWindow - 复制.xaml"
     this.MCallCOM.Click += new System.Windows.RoutedEventHandler(this.CallCOM_Click);
     
     #line default
     #line hidden
     return;
     case 22:
     
     #line 110 "..\..\..\MainWindow - 复制.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.PassWord_Click);
     
     #line default
     #line hidden
     return;
     case 23:
     
     #line 117 "..\..\..\MainWindow - 复制.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exception_Click);
     
     #line default
     #line hidden
     return;
     case 24:
     
     #line 124 "..\..\..\MainWindow - 复制.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Help_Click);
     
     #line default
     #line hidden
     return;
     case 25:
     this.lblTime = ((System.Windows.Controls.Primitives.StatusBarItem)(target));
     return;
     case 26:
     this.lblusername = ((System.Windows.Controls.Primitives.StatusBarItem)(target));
     return;
     case 27:
     this.imgSystem = ((System.Windows.Controls.Image)(target));
     return;
     case 28:
     this.lblsystemstate = ((System.Windows.Controls.Primitives.StatusBarItem)(target));
     return;
     case 29:
     this.imgCOM = ((System.Windows.Controls.Image)(target));
     return;
     case 30:
     this.lblcomstate = ((System.Windows.Controls.Primitives.StatusBarItem)(target));
     return;
     case 31:
     this.background = ((System.Windows.Controls.Image)(target));
     return;
     case 32:
     this.canvas = ((System.Windows.Controls.ZoomableCanvas)(target));
     return;
     case 33:
     this.mScaleTf = ((System.Windows.Media.ScaleTransform)(target));
     return;
     case 34:
     this.mTranslateTf = ((System.Windows.Media.TranslateTransform)(target));
     return;
     case 35:
     this.marquee = ((NS_Marquee.Marquee)(target));
     return;
     case 36:
     this.dataGrid = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 37:
     this.textBlock12 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 38:
     this.cb_AgvNum = ((System.Windows.Controls.ComboBox)(target));
     
     #line 374 "..\..\..\MainWindow - 复制.xaml"
     this.cb_AgvNum.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cb_AgvNum_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 39:
     this.textBlock9 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 40:
     this.cb_Operation = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 41:
     this.label1 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 42:
     this.cb_Speed = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 43:
     this.textBlock11 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 44:
     this.cb_LineNum = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 45:
     this.btnControl = ((System.Windows.Controls.Button)(target));
     
     #line 395 "..\..\..\MainWindow - 复制.xaml"
     this.btnControl.Click += new System.Windows.RoutedEventHandler(this.btnControl_Click);
     
     #line default
     #line hidden
     return;
     case 46:
     this.cbautoshift = ((System.Windows.Controls.CheckBox)(target));
     
     #line 403 "..\..\..\MainWindow - 复制.xaml"
     this.cbautoshift.Checked += new System.Windows.RoutedEventHandler(this.cbautoshift_Checked);
     
     #line default
     #line hidden
     return;
     case 47:
     this.tbpageinterval = ((System.Windows.Controls.TextBox)(target));
     return;
     case 48:
     this.btn_OpenSystem = ((System.Windows.Controls.Button)(target));
     
     #line 419 "..\..\..\MainWindow - 复制.xaml"
     this.btn_OpenSystem.Click += new System.Windows.RoutedEventHandler(this.btn_OpenSystem_Click);
     
     #line default
     #line hidden
     return;
     case 49:
     this.btn_CloseSystem = ((System.Windows.Controls.Button)(target));
     
     #line 420 "..\..\..\MainWindow - 复制.xaml"
     this.btn_CloseSystem.Click += new System.Windows.RoutedEventHandler(this.btn_CloseSystem_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
コード例 #4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\..\MainWindow.xaml"
                ((AGV_WPF.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 10 "..\..\..\MainWindow.xaml"
                ((AGV_WPF.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this._loading = ((NS_LoadingWait.LoadingWait)(target));
                return;

            case 3:
                this.menu = ((System.Windows.Controls.Menu)(target));
                return;

            case 4:
                this.MenuAGVManager = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 5:
                this.AGVPara = ((System.Windows.Controls.MenuItem)(target));

            #line 40 "..\..\..\MainWindow.xaml"
                this.AGVPara.Click += new System.Windows.RoutedEventHandler(this.AGVPara_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.Mark = ((System.Windows.Controls.MenuItem)(target));

            #line 45 "..\..\..\MainWindow.xaml"
                this.Mark.Click += new System.Windows.RoutedEventHandler(this.Mark_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.Route = ((System.Windows.Controls.MenuItem)(target));

            #line 50 "..\..\..\MainWindow.xaml"
                this.Route.Click += new System.Windows.RoutedEventHandler(this.Route_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.Traffic = ((System.Windows.Controls.MenuItem)(target));

            #line 55 "..\..\..\MainWindow.xaml"
                this.Traffic.Click += new System.Windows.RoutedEventHandler(this.Traffic_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.WorkLine = ((System.Windows.Controls.MenuItem)(target));

            #line 60 "..\..\..\MainWindow.xaml"
                this.WorkLine.Click += new System.Windows.RoutedEventHandler(this.WorkLine_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.DockArea = ((System.Windows.Controls.MenuItem)(target));

            #line 65 "..\..\..\MainWindow.xaml"
                this.DockArea.Click += new System.Windows.RoutedEventHandler(this.DockArea_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.MenuSystemManage = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 12:

            #line 72 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.UserManage_Click);

            #line default
            #line hidden
                return;

            case 13:

            #line 79 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.PassWord_Click);

            #line default
            #line hidden
                return;

            case 14:

            #line 86 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exception_Click);

            #line default
            #line hidden
                return;

            case 15:

            #line 93 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Help_Click);

            #line default
            #line hidden
                return;

            case 16:

            #line 99 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.About_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.lblTime = ((System.Windows.Controls.Primitives.StatusBarItem)(target));
                return;

            case 18:
                this.lblusername = ((System.Windows.Controls.Primitives.StatusBarItem)(target));
                return;

            case 19:
                this.imgSystem = ((System.Windows.Controls.Image)(target));
                return;

            case 20:
                this.lblsystemstate = ((System.Windows.Controls.Primitives.StatusBarItem)(target));
                return;

            case 21:
                this.lblservicestate = ((System.Windows.Controls.Primitives.StatusBarItem)(target));
                return;

            case 22:
                this.background = ((System.Windows.Controls.Image)(target));
                return;

            case 23:
                this.canvas = ((System.Windows.Controls.ZoomableCanvas)(target));
                return;

            case 24:
                this.marquee = ((NS_Marquee.Marquee)(target));
                return;

            case 25:
                this.dataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 26:
                this.expanderMain = ((System.Windows.Controls.Expander)(target));

            #line 249 "..\..\..\MainWindow.xaml"
                this.expanderMain.MouseEnter += new System.Windows.Input.MouseEventHandler(this.expanderMain_MouseEnter);

            #line default
            #line hidden

            #line 249 "..\..\..\MainWindow.xaml"
                this.expanderMain.MouseLeave += new System.Windows.Input.MouseEventHandler(this.expanderMain_MouseLeave);

            #line default
            #line hidden
                return;

            case 27:
                this.textBlock12 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 28:
                this.cb_AgvNum = ((System.Windows.Controls.ComboBox)(target));

            #line 282 "..\..\..\MainWindow.xaml"
                this.cb_AgvNum.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cb_AgvNum_SelectionChanged);

            #line default
            #line hidden
                return;

            case 29:
                this.textBlock9 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 30:
                this.cb_Operation = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 31:
                this.label1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 32:
                this.cb_Speed = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 33:
                this.textBlock11 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 34:
                this.cb_LineNum = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 35:
                this.btnControl = ((System.Windows.Controls.Button)(target));

            #line 303 "..\..\..\MainWindow.xaml"
                this.btnControl.Click += new System.Windows.RoutedEventHandler(this.btnControl_Click);

            #line default
            #line hidden
                return;

            case 36:
                this.cbautoshift = ((System.Windows.Controls.CheckBox)(target));

            #line 311 "..\..\..\MainWindow.xaml"
                this.cbautoshift.Checked += new System.Windows.RoutedEventHandler(this.cbautoshift_Checked);

            #line default
            #line hidden

            #line 311 "..\..\..\MainWindow.xaml"
                this.cbautoshift.Unchecked += new System.Windows.RoutedEventHandler(this.cbautoshift_Unchecked);

            #line default
            #line hidden
                return;

            case 37:
                this.tbpageinterval = ((System.Windows.Controls.TextBox)(target));

            #line 314 "..\..\..\MainWindow.xaml"
                this.tbpageinterval.AddHandler(System.Windows.DataObject.PastingEvent, new System.Windows.DataObjectPastingEventHandler(this.tbpageinterval_Pasting));

            #line default
            #line hidden

            #line 314 "..\..\..\MainWindow.xaml"
                this.tbpageinterval.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.tbpageinterval_PreviewKeyDown);

            #line default
            #line hidden

            #line 314 "..\..\..\MainWindow.xaml"
                this.tbpageinterval.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.tbpageinterval_PreviewTextInput);

            #line default
            #line hidden

            #line 314 "..\..\..\MainWindow.xaml"
                this.tbpageinterval.LostFocus += new System.Windows.RoutedEventHandler(this.tbpageinterval_LostFocus);

            #line default
            #line hidden
                return;

            case 38:
                this.btn_OpenSystem = ((System.Windows.Controls.Button)(target));

            #line 327 "..\..\..\MainWindow.xaml"
                this.btn_OpenSystem.Click += new System.Windows.RoutedEventHandler(this.btn_OpenSystem_Click);

            #line default
            #line hidden
                return;

            case 39:
                this.btn_CloseSystem = ((System.Windows.Controls.Button)(target));

            #line 328 "..\..\..\MainWindow.xaml"
                this.btn_CloseSystem.Click += new System.Windows.RoutedEventHandler(this.btn_CloseSystem_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }