Beispiel #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.UserControl = ((NirIdentifier.Detect.ComponentDisplayPanel)(target));
                return;

            case 2:
                this.gridResult = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.detailsCol = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 4:
                this.imgResult = ((System.Windows.Controls.Image)(target));
                return;

            case 5:
                this.txtQuantResult = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.imgQuantResult = ((System.Windows.Controls.Image)(target));
                return;

            case 7:
                this.imgIdentifyResult = ((System.Windows.Controls.Image)(target));
                return;

            case 8:
                this.txtAddinResult = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 9:
                this.txtInvalidResult = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 10:
                this.txtTotalResult = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 11:
                this.tabOptical = ((System.Windows.Controls.TabItem)(target));
                return;

            case 12:
                this.panelGraphic = ((Ai.Hong.CommonLibrary.OneSpectrumChart)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainDescription = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 2:
                this.graphicChart = ((Ai.Hong.CommonLibrary.OneSpectrumChart)(target));
                return;

            case 3:
                this.xCalgraphicChart = ((Ai.Hong.CommonLibrary.ChartPickPeak)(target));
                return;

            case 4:
                this.imgPrompt = ((System.Windows.Controls.Image)(target));
                return;

            case 5:
                this.imgXCalStandard = ((System.Windows.Controls.Grid)(target));
                return;

            case 6:
                this.stackTotalButton = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 7:
                this.btnOffsetCorrect = ((Ai.Hong.CommonLibrary.Controls.UserButton)(target));

            #line 43 "..\..\..\..\Calibration\Correction.xaml"
                this.btnOffsetCorrect.Click += new System.Windows.RoutedEventHandler(this.btnOffsetCorrect_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.btnXCorrect = ((Ai.Hong.CommonLibrary.Controls.UserButton)(target));

            #line 44 "..\..\..\..\Calibration\Correction.xaml"
                this.btnXCorrect.Click += new System.Windows.RoutedEventHandler(this.btnXCorrect_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.btnAllCal = ((Ai.Hong.CommonLibrary.Controls.UserButton)(target));

            #line 45 "..\..\..\..\Calibration\Correction.xaml"
                this.btnAllCal.Click += new System.Windows.RoutedEventHandler(this.btnAllCal_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.stackProcessButton = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 11:
                this.btnProcess = ((Ai.Hong.CommonLibrary.Controls.UserButton)(target));

            #line 48 "..\..\..\..\Calibration\Correction.xaml"
                this.btnProcess.Click += new System.Windows.RoutedEventHandler(this.btnProcess_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.btnCancel = ((Ai.Hong.CommonLibrary.Controls.UserButton)(target));

            #line 51 "..\..\..\..\Calibration\Correction.xaml"
                this.btnCancel.Click += new System.Windows.RoutedEventHandler(this.btnCancel_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.stackXCalButton = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 14:
                this.btnConfirmXCal = ((Ai.Hong.CommonLibrary.Controls.UserButton)(target));

            #line 54 "..\..\..\..\Calibration\Correction.xaml"
                this.btnConfirmXCal.Click += new System.Windows.RoutedEventHandler(this.btnConfirmXCal_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.btnCancelXCal = ((Ai.Hong.CommonLibrary.Controls.UserButton)(target));

            #line 55 "..\..\..\..\Calibration\Correction.xaml"
                this.btnCancelXCal.Click += new System.Windows.RoutedEventHandler(this.btnCancel_Click);

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