Beispiel #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.btnSave = ((ControlLib.ButtonBase)(target));

            #line 58 "..\..\..\..\SetCamera\SetCamera.xaml"
                this.btnSave.Click += new System.Windows.RoutedEventHandler(this.btnSave_Click);

            #line default
            #line hidden
                return;

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

            case 3:
                this.cboCameraType = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            case 5:
                this.tsbSoftTrrigger = ((ControlLib.MTSwitchButton)(target));
                return;

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

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

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

            case 9:
                this.tsbNameCamera = ((ControlLib.MTSwitchButton)(target));

            #line 89 "..\..\..\..\SetCamera\SetCamera.xaml"
                this.tsbNameCamera.Checked += new System.Windows.RoutedEventHandler(this.tsbNameCamera_Checked);

            #line default
            #line hidden

            #line 89 "..\..\..\..\SetCamera\SetCamera.xaml"
                this.tsbNameCamera.Unchecked += new System.Windows.RoutedEventHandler(this.tsbNameCamera_Unchecked);

            #line default
            #line hidden
                return;

            case 10:
                this.grid4 = ((System.Windows.Controls.Grid)(target));
                return;

            case 11:
                this.cboTriggerSource = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 12:
                this.btnSoftwore = ((ControlLib.ButtonBase)(target));

            #line 100 "..\..\..\..\SetCamera\SetCamera.xaml"
                this.btnSoftwore.Click += new System.Windows.RoutedEventHandler(this.btnSoftwore_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 11 "..\..\..\SetCamera\WinSetCamera.xaml"
                ((Camera.WinSetCamera)(target)).Loaded += new System.Windows.RoutedEventHandler(this.BaseMetroWindow_Loaded);

            #line default
            #line hidden

            #line 11 "..\..\..\SetCamera\WinSetCamera.xaml"
                ((Camera.WinSetCamera)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.BaseMetroWindow_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.setCamera1 = ((Camera.SetCamera)(target));
                return;

            case 3:
                this.setCamera2 = ((Camera.SetCamera)(target));
                return;

            case 4:
                this.setCamera3 = ((Camera.SetCamera)(target));
                return;

            case 5:
                this.setCamera4 = ((Camera.SetCamera)(target));
                return;

            case 6:
                this.setCamera5 = ((Camera.SetCamera)(target));
                return;

            case 7:
                this.setCamera6 = ((Camera.SetCamera)(target));
                return;

            case 8:
                this.setCamera7 = ((Camera.SetCamera)(target));
                return;

            case 9:
                this.setCamera8 = ((Camera.SetCamera)(target));
                return;

            case 10:
                this.grid2 = ((System.Windows.Controls.Grid)(target));
                return;

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

            #line 91 "..\..\..\SetCamera\WinSetCamera.xaml"
                this.dudNumCamera.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.dudNumCamera_ValueChanged);

            #line default
            #line hidden
                return;

            case 12:
                this.btnClose = ((ControlLib.ButtonBase)(target));

            #line 93 "..\..\..\SetCamera\WinSetCamera.xaml"
                this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.grid3 = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 15:
                this.tsbSoftTrrigger = ((ControlLib.MTSwitchButton)(target));

            #line 100 "..\..\..\SetCamera\WinSetCamera.xaml"
                this.tsbSoftTrrigger.Checked += new System.Windows.RoutedEventHandler(this.tsbSoftTrrigger_Checked);

            #line default
            #line hidden

            #line 100 "..\..\..\SetCamera\WinSetCamera.xaml"
                this.tsbSoftTrrigger.Unchecked += new System.Windows.RoutedEventHandler(this.tsbSoftTrrigger_Unchecked);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\..\Manual\WinTrrigerPLC.xaml"
                ((DealPLC.WinTrrigerPLC)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden

            #line 8 "..\..\..\Manual\WinTrrigerPLC.xaml"
                ((DealPLC.WinTrrigerPLC)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

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

            #line 34 "..\..\..\Manual\WinTrrigerPLC.xaml"
                this.dgTrrigerReg.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dgTrrigerReg_SelectionChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.btnTrriger = ((ControlLib.ButtonBase)(target));

            #line 45 "..\..\..\Manual\WinTrrigerPLC.xaml"
                this.btnTrriger.Click += new System.Windows.RoutedEventHandler(this.btnTrriger_Click);

            #line default
            #line hidden
                return;

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

            #line 46 "..\..\..\Manual\WinTrrigerPLC.xaml"
                this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.chkTopMost = ((System.Windows.Controls.CheckBox)(target));

            #line 47 "..\..\..\Manual\WinTrrigerPLC.xaml"
                this.chkTopMost.Checked += new System.Windows.RoutedEventHandler(this.chkTopMost_Checked);

            #line default
            #line hidden

            #line 47 "..\..\..\Manual\WinTrrigerPLC.xaml"
                this.chkTopMost.Unchecked += new System.Windows.RoutedEventHandler(this.chkTopMost_Unchecked);

            #line default
            #line hidden
                return;

            case 6:
                this.chkClearReserve = ((System.Windows.Controls.CheckBox)(target));

            #line 48 "..\..\..\Manual\WinTrrigerPLC.xaml"
                this.chkClearReserve.Checked += new System.Windows.RoutedEventHandler(this.chkClearReserve_Checked);

            #line default
            #line hidden

            #line 48 "..\..\..\Manual\WinTrrigerPLC.xaml"
                this.chkClearReserve.Unchecked += new System.Windows.RoutedEventHandler(this.chkClearReserve_Unchecked);

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