示例#1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 2:
                this.btnHomePage = ((System.Windows.Controls.RadioButton)(target));

            #line 84 "..\..\..\MainWindow1.xaml"
                this.btnHomePage.Checked += new System.Windows.RoutedEventHandler(this.btnHomePage_Checked);

            #line default
            #line hidden
                return;

            case 3:
                this.btnDetect = ((System.Windows.Controls.RadioButton)(target));

            #line 85 "..\..\..\MainWindow1.xaml"
                this.btnDetect.Checked += new System.Windows.RoutedEventHandler(this.btnDetect_Checked);

            #line default
            #line hidden
                return;

            case 4:
                this.btnOffline = ((System.Windows.Controls.RadioButton)(target));

            #line 86 "..\..\..\MainWindow1.xaml"
                this.btnOffline.Checked += new System.Windows.RoutedEventHandler(this.btnOffine_Checked);

            #line default
            #line hidden
                return;

            case 5:
                this.btnCalibrate = ((System.Windows.Controls.RadioButton)(target));

            #line 87 "..\..\..\MainWindow1.xaml"
                this.btnCalibrate.Checked += new System.Windows.RoutedEventHandler(this.btnCalibrate_Checked);

            #line default
            #line hidden
                return;

            case 6:
                this.btnNormalScan = ((System.Windows.Controls.RadioButton)(target));

            #line 88 "..\..\..\MainWindow1.xaml"
                this.btnNormalScan.Checked += new System.Windows.RoutedEventHandler(this.btnNormalScan_Checked);

            #line default
            #line hidden
                return;

            case 7:
                this.btnSystemSetup = ((System.Windows.Controls.RadioButton)(target));

            #line 89 "..\..\..\MainWindow1.xaml"
                this.btnSystemSetup.Checked += new System.Windows.RoutedEventHandler(this.btnSystemSetup_Checked);

            #line default
            #line hidden
                return;

            case 8:
                this.GridScreenContainer = ((System.Windows.Controls.Grid)(target));
                return;

            case 9:
                this.mainSelelectScreen = ((NirIdentifier.MainSelect)(target));
                return;

            case 10:
                this.imgState = ((System.Windows.Controls.Image)(target));
                return;

            case 11:
                this.txtStatus = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 12:
                this.imgLaserStatus = ((System.Windows.Controls.Image)(target));
                return;

            case 13:
                this.txtLaser = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 2:
                this.btnHomePage = ((System.Windows.Controls.Button)(target));

            #line 21 "..\..\..\MainWindow.xaml"
                this.btnHomePage.Click += new System.Windows.RoutedEventHandler(this.btnToolButton_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.btnVerify = ((System.Windows.Controls.Button)(target));

            #line 27 "..\..\..\MainWindow.xaml"
                this.btnVerify.Click += new System.Windows.RoutedEventHandler(this.btnToolButton_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.btnNormalScan = ((System.Windows.Controls.Button)(target));

            #line 33 "..\..\..\MainWindow.xaml"
                this.btnNormalScan.Click += new System.Windows.RoutedEventHandler(this.btnToolButton_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.btnSampleDetect = ((System.Windows.Controls.Button)(target));

            #line 39 "..\..\..\MainWindow.xaml"
                this.btnSampleDetect.Click += new System.Windows.RoutedEventHandler(this.btnToolButton_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.btnSetup = ((System.Windows.Controls.Button)(target));

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

            #line default
            #line hidden
                return;

            case 7:
                this.GridScreenContainer = ((System.Windows.Controls.Grid)(target));
                return;

            case 8:
                this.mainSelelectScreen = ((NirIdentifier.MainSelect)(target));
                return;

            case 9:
                this.btnTest = ((System.Windows.Controls.Button)(target));

            #line 56 "..\..\..\MainWindow.xaml"
                this.btnTest.Click += new System.Windows.RoutedEventHandler(this.btnTest_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.imgCCDStatus = ((System.Windows.Controls.Image)(target));
                return;

            case 11:
                this.txtCCDStatus = ((System.Windows.Controls.TextBlock)(target));

            #line 61 "..\..\..\MainWindow.xaml"
                this.txtCCDStatus.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.txtCCDStatus_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 12:
                this.imgLaserStatus = ((System.Windows.Controls.Image)(target));
                return;

            case 13:
                this.txtLaserStatus = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }