コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.nGroupBox1 = ((ControlLib.NGroupBox)(target));
                return;

            case 2:
                this.label12 = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.lbCodeState = ((System.Windows.Controls.Label)(target));
                return;

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

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

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

            case 7:
                this.lblCodePrecises = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
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;
        }
コード例 #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.nGroupBox2 = ((ControlLib.NGroupBox)(target));
                return;

            case 2:
                this.dgState = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.gpbAdjust = ((ControlLib.NGroupBox)(target));
                return;

            case 2:
                this.dgSetAdjust = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 3:
                this.btnSave = ((ControlLib.ButtonColor)(target));

            #line 55 "..\..\..\..\AdjustBase\Base\WinSetParAdjust.xaml"
                this.btnSave.Click += new System.Windows.RoutedEventHandler(this.btnSave_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.btnClose = ((ControlLib.ButtonColor)(target));

            #line 56 "..\..\..\..\AdjustBase\Base\WinSetParAdjust.xaml"
                this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);

            #line default
            #line hidden
                return;

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

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

            case 7:
                this.txtTitle = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\..\..\SetWorkType\WinSetWorkType.xaml"
                ((DealConfigFile.WinSetWorkType)(target)).Loaded += new System.Windows.RoutedEventHandler(this.BaseMetroWindow_Loaded);

            #line default
            #line hidden

            #line 10 "..\..\..\..\SetWorkType\WinSetWorkType.xaml"
                ((DealConfigFile.WinSetWorkType)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.BaseMetroWindow_Closing);

            #line default
            #line hidden
                return;

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

            case 3:
                this.gdLayout = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.btnSave = ((ControlLib.ButtonColor)(target));

            #line 35 "..\..\..\..\SetWorkType\WinSetWorkType.xaml"
                this.btnSave.Click += new System.Windows.RoutedEventHandler(this.btnSave_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.dgSetWork = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #6
0
ファイル: WinSetPLC.g.cs プロジェクト: xhyangxianjun/InspOld
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\..\..\..\SetPLC\UI\WinSetPLC.xaml"
                ((DealPLC.WinSetPLC)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MetroWindow_Loaded);

            #line default
            #line hidden

            #line 12 "..\..\..\..\..\SetPLC\UI\WinSetPLC.xaml"
                ((DealPLC.WinSetPLC)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.MetroWindow_Closing);

            #line default
            #line hidden
                return;

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

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

            case 4:
                this.tvSetPLC = ((System.Windows.Controls.TreeView)(target));

            #line 50 "..\..\..\..\..\SetPLC\UI\WinSetPLC.xaml"
                this.tvSetPLC.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.tvSetPLC_SelectedItemChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #7
0
        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;
        }
コード例 #8
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 7 "..\..\..\..\..\..\CIMOled\SysMac\UI\WinCimSysMac.xaml"
                ((DealCIM.WinCimSysMac)(target)).Loaded += new System.Windows.RoutedEventHandler(this.BaseMetroWindow_Loaded);

            #line default
            #line hidden
                return;

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

            case 3:
                this.dgSysMac = ((System.Windows.Controls.DataGrid)(target));
                return;

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

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

            case 6:
                this.txtSend = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 8:
                this.btnAlarm = ((System.Windows.Controls.Button)(target));

            #line 55 "..\..\..\..\..\..\CIMOled\SysMac\UI\WinCimSysMac.xaml"
                this.btnAlarm.Click += new System.Windows.RoutedEventHandler(this.btnAlarm_Click);

            #line default
            #line hidden
                return;

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

            #line 56 "..\..\..\..\..\..\CIMOled\SysMac\UI\WinCimSysMac.xaml"
                this.btnTact.Click += new System.Windows.RoutedEventHandler(this.btnTact_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.btnPanelIDLeft = ((System.Windows.Controls.Button)(target));

            #line 57 "..\..\..\..\..\..\CIMOled\SysMac\UI\WinCimSysMac.xaml"
                this.btnPanelIDLeft.Click += new System.Windows.RoutedEventHandler(this.btnPanelID_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.btnChange = ((System.Windows.Controls.Button)(target));

            #line 58 "..\..\..\..\..\..\CIMOled\SysMac\UI\WinCimSysMac.xaml"
                this.btnChange.Click += new System.Windows.RoutedEventHandler(this.btnChange_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.btnJobendLeft = ((System.Windows.Controls.Button)(target));

            #line 59 "..\..\..\..\..\..\CIMOled\SysMac\UI\WinCimSysMac.xaml"
                this.btnJobendLeft.Click += new System.Windows.RoutedEventHandler(this.btnJobend_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.btnAboutID = ((System.Windows.Controls.Button)(target));

            #line 60 "..\..\..\..\..\..\CIMOled\SysMac\UI\WinCimSysMac.xaml"
                this.btnAboutID.Click += new System.Windows.RoutedEventHandler(this.btnAboutID_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.btnPanelIDRight = ((System.Windows.Controls.Button)(target));

            #line 61 "..\..\..\..\..\..\CIMOled\SysMac\UI\WinCimSysMac.xaml"
                this.btnPanelIDRight.Click += new System.Windows.RoutedEventHandler(this.btnPanelIDRight_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.btnJobendRight = ((System.Windows.Controls.Button)(target));

            #line 62 "..\..\..\..\..\..\CIMOled\SysMac\UI\WinCimSysMac.xaml"
                this.btnJobendRight.Click += new System.Windows.RoutedEventHandler(this.btnJobendRight_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.btnOpenCIMMode = ((System.Windows.Controls.Button)(target));

            #line 63 "..\..\..\..\..\..\CIMOled\SysMac\UI\WinCimSysMac.xaml"
                this.btnOpenCIMMode.Click += new System.Windows.RoutedEventHandler(this.btnOpenCIMMode_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.btnCloseCimMode = ((System.Windows.Controls.Button)(target));

            #line 64 "..\..\..\..\..\..\CIMOled\SysMac\UI\WinCimSysMac.xaml"
                this.btnCloseCimMode.Click += new System.Windows.RoutedEventHandler(this.btnCloseCimMode_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #9
0
ファイル: Adjust3.g.cs プロジェクト: xhyangxianjun/InspOld
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.adjust4 = ((DealConfigFile.Adjust3)(target));
                return;

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

            #line 23 "..\..\..\..\..\AdjustBase\UI\Adjust3.xaml"
                this.gpbAdjust.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.gpbAdjust_MouseRightButtonUp);

            #line default
            #line hidden
                return;

            case 3:
                this.gdLayout = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 5:
                this.dudAdjust1 = ((ControlLib.DoubleUpDown)(target));

            #line 37 "..\..\..\..\..\AdjustBase\UI\Adjust3.xaml"
                this.dudAdjust1.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.dudAdjust1_ValueChanged);

            #line default
            #line hidden
                return;

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

            case 7:
                this.dudAdjust2 = ((ControlLib.DoubleUpDown)(target));

            #line 39 "..\..\..\..\..\AdjustBase\UI\Adjust3.xaml"
                this.dudAdjust2.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.dudAdjust2_ValueChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.lbName3 = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.dudAdjust3 = ((ControlLib.DoubleUpDown)(target));

            #line 41 "..\..\..\..\..\AdjustBase\UI\Adjust3.xaml"
                this.dudAdjust3.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.dudAdjust3_ValueChanged);

            #line default
            #line hidden
                return;

            case 10:
                this.btnSave = ((ControlLib.ButtonColor)(target));

            #line 42 "..\..\..\..\..\AdjustBase\UI\Adjust3.xaml"
                this.btnSave.Click += new System.Windows.RoutedEventHandler(this.btnSave_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.txtAnnotation = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #10
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.gpRun = ((ControlLib.NGroupBox)(target));
                return;

            case 2:
                this.btnSingle = ((ControlLib.ButtonColor)(target));

            #line 39 "..\..\..\..\..\MainWindow\Manual\BaseUCTrrigerComprehensive.xaml"
                this.btnSingle.Click += new System.Windows.RoutedEventHandler(this.btnSingle_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.btnRepeat = ((ControlLib.ButtonColor)(target));

            #line 40 "..\..\..\..\..\MainWindow\Manual\BaseUCTrrigerComprehensive.xaml"
                this.btnRepeat.Click += new System.Windows.RoutedEventHandler(this.btnRepeat_Click);

            #line default
            #line hidden
                return;

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

            case 5:
                this.dudInterval = ((ControlLib.DoubleUpDown)(target));

            #line 42 "..\..\..\..\..\MainWindow\Manual\BaseUCTrrigerComprehensive.xaml"
                this.dudInterval.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.dudInterval_ValueChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.cboPos = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            case 8:
                this.chkNGStop = ((System.Windows.Controls.CheckBox)(target));

            #line 45 "..\..\..\..\..\MainWindow\Manual\BaseUCTrrigerComprehensive.xaml"
                this.chkNGStop.Checked += new System.Windows.RoutedEventHandler(this.chkNGStop_Checked);

            #line default
            #line hidden

            #line 45 "..\..\..\..\..\MainWindow\Manual\BaseUCTrrigerComprehensive.xaml"
                this.chkNGStop.Unchecked += new System.Windows.RoutedEventHandler(this.chkNGStop_Unchecked);

            #line default
            #line hidden
                return;

            case 9:
                this.chkOKStop = ((System.Windows.Controls.CheckBox)(target));

            #line 46 "..\..\..\..\..\MainWindow\Manual\BaseUCTrrigerComprehensive.xaml"
                this.chkOKStop.Checked += new System.Windows.RoutedEventHandler(this.chkOKStop_Checked);

            #line default
            #line hidden

            #line 46 "..\..\..\..\..\MainWindow\Manual\BaseUCTrrigerComprehensive.xaml"
                this.chkOKStop.Unchecked += new System.Windows.RoutedEventHandler(this.chkOKStop_Unchecked);

            #line default
            #line hidden
                return;

            case 10:
                this.chkAutoNextLocal = ((System.Windows.Controls.CheckBox)(target));

            #line 47 "..\..\..\..\..\MainWindow\Manual\BaseUCTrrigerComprehensive.xaml"
                this.chkAutoNextLocal.Checked += new System.Windows.RoutedEventHandler(this.chkAutoNextLocal_Checked);

            #line default
            #line hidden
                return;

            case 11:
                this.chkAutoPreLocal = ((System.Windows.Controls.CheckBox)(target));

            #line 48 "..\..\..\..\..\MainWindow\Manual\BaseUCTrrigerComprehensive.xaml"
                this.chkAutoPreLocal.Checked += new System.Windows.RoutedEventHandler(this.chkAutoPreLocal_Checked);

            #line default
            #line hidden
                return;

            case 12:
                this.label3 = ((System.Windows.Controls.Label)(target));
                return;

            case 13:
                this.dudNoPos = ((ControlLib.DoubleUpDown)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #11
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.regBaseCtr = ((DealPLC.BaseUCReg)(target));
                return;

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

            case 3:
                this.dgReg = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 4:
                this.grid1 = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:
                this.btnSave = ((ControlLib.ButtonColor)(target));

            #line 65 "..\..\..\..\..\..\SetPLC\RegPLC\Base\BaseUCReg.xaml"
                this.btnSave.Click += new System.Windows.RoutedEventHandler(this.btnSave_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.btnRegCreate = ((ControlLib.ButtonColor)(target));

            #line 66 "..\..\..\..\..\..\SetPLC\RegPLC\Base\BaseUCReg.xaml"
                this.btnRegCreate.Click += new System.Windows.RoutedEventHandler(this.btnCreate_Click);

            #line default
            #line hidden
                return;

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

            case 8:
                this.txtRegStart = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.chkClearCoAnno = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 10:
                this.lblNum = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.dudNumReg = ((ControlLib.DoubleUpDown)(target));

            #line 71 "..\..\..\..\..\..\SetPLC\RegPLC\Base\BaseUCReg.xaml"
                this.dudNumReg.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.dudNumReg_ValueChanged);

            #line default
            #line hidden
                return;

            case 12:
                this.btnInputExcel = ((ControlLib.ButtonColor)(target));

            #line 72 "..\..\..\..\..\..\SetPLC\RegPLC\Base\BaseUCReg.xaml"
                this.btnInputExcel.Click += new System.Windows.RoutedEventHandler(this.btnInputExcel_Click);

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