예제 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.lblClear = ((ControlLib.NLabel)(target));

            #line 23 "..\..\..\..\..\..\Log\State\UI\UCStateWork.xaml"
                this.lblClear.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.lblClear_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 2:
                this.lblOpenFolder = ((ControlLib.NLabel)(target));

            #line 24 "..\..\..\..\..\..\Log\State\UI\UCStateWork.xaml"
                this.lblOpenFolder.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.lblOpenFolder_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 3:
                this.nGroupBox2 = ((ControlLib.NGroupBox)(target));
                return;

            case 4:
                this.dgState = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\..\..\..\EdgeInspection\UI\UCResultIns.xaml"
                ((Main.UCResultIns)(target)).Loaded += new System.Windows.RoutedEventHandler(this.BaseControl_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.lblCode = ((ControlLib.NLabel)(target));
                return;

            case 3:
                this.lblResult = ((ControlLib.NLabel)(target));
                return;

            case 4:
                this.lblClear = ((System.Windows.Controls.Label)(target));

            #line 36 "..\..\..\..\..\EdgeInspection\UI\UCResultIns.xaml"
                this.lblClear.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lblClear_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 5:
                this.lblTotalNum = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.lblOKNum = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.lblNGNum = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.lblShift = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.baseUCDisplay = ((Camera.BaseUCDisplayCamera)(target));
                return;

            case 2:
                this.gpbCamera = ((ControlLib.NGroupBox)(target));

            #line 36 "..\..\..\..\UICamera\Base\BaseUCDisplayCamera.xaml"
                this.gpbCamera.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.gpbCamera_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 3:
                this.dpImage = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 4:
                this.svImage = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 5:
                this.ccImage = ((System.Windows.Controls.ContentControl)(target));
                return;

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

            case 7:
                this.cvDraw = ((System.Windows.Controls.Canvas)(target));

            #line 44 "..\..\..\..\UICamera\Base\BaseUCDisplayCamera.xaml"
                this.cvDraw.MouseMove += new System.Windows.Input.MouseEventHandler(this.cvDraw_MouseMove);

            #line default
            #line hidden
                return;

            case 8:
                this.hWDispImage = ((HalconDotNet.HWindowControlWPF)(target));
                return;

            case 9:
                this.ppShowResult = ((System.Windows.Controls.Primitives.Popup)(target));
                return;

            case 10:
                this.txtInfo = ((System.Windows.Controls.TextBox)(target));
                return;

            case 11:
                this.dpBtn = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 12:
                this.lblTactTime = ((ControlLib.NLabel)(target));
                return;

            case 13:
                this.lblRealImage = ((ControlLib.NLabel)(target));

            #line 62 "..\..\..\..\UICamera\Base\BaseUCDisplayCamera.xaml"
                this.lblRealImage.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.lblRealImage_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 14:
                this.lblSaveImage = ((ControlLib.NLabel)(target));

            #line 64 "..\..\..\..\UICamera\Base\BaseUCDisplayCamera.xaml"
                this.lblSaveImage.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.lblSaveImage_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 15:
                this.lblLocalImage = ((ControlLib.NLabel)(target));

            #line 65 "..\..\..\..\UICamera\Base\BaseUCDisplayCamera.xaml"
                this.lblLocalImage.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.lblLocalImage_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 16:
                this.lblNext = ((ControlLib.NLabel)(target));

            #line 67 "..\..\..\..\UICamera\Base\BaseUCDisplayCamera.xaml"
                this.lblNext.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.lblNext_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 17:
                this.lblPre = ((ControlLib.NLabel)(target));

            #line 70 "..\..\..\..\UICamera\Base\BaseUCDisplayCamera.xaml"
                this.lblPre.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.lblPre_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 18:
                this.lblPosGray = ((ControlLib.NLabel)(target));
                return;

            case 19:
                this.lblPop = ((ControlLib.NLabel)(target));
                return;
            }
            this._contentLoaded = true;
        }