Exemple #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.dpLayout = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 2:
                this.uCStateWork = ((DealLog.UCStateWork)(target));
                return;

            case 3:
                this.uCAlarm = ((DealLog.UCAlarm)(target));
                return;

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

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

            #line 34 "..\..\..\Log\WinStateAndAlarm.xaml"
                this.tsbImage.Checked += new System.Windows.RoutedEventHandler(this.tsbImage_Checked);

            #line default
            #line hidden

            #line 34 "..\..\..\Log\WinStateAndAlarm.xaml"
                this.tsbImage.Unchecked += new System.Windows.RoutedEventHandler(this.tsbImage_Unchecked);

            #line default
            #line hidden
                return;

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

            #line 6 "..\..\..\..\..\Log\WinStateAndAlarm\WinStateAndAlarm.xaml"
                ((DealLog.WinStateAndAlarm)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.dpLayout = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 3:
                this.uCStateWork = ((DealLog.UCStateWork)(target));
                return;

            case 4:
                this.uCAlarm = ((DealLog.UCAlarm)(target));
                return;

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

            case 6:
                this.tsbMainShow = ((ControlLib.MTSwitchButton)(target));

            #line 38 "..\..\..\..\..\Log\WinStateAndAlarm\WinStateAndAlarm.xaml"
                this.tsbMainShow.Checked += new System.Windows.RoutedEventHandler(this.tsbMainShow_Checked);

            #line default
            #line hidden

            #line 38 "..\..\..\..\..\Log\WinStateAndAlarm\WinStateAndAlarm.xaml"
                this.tsbMainShow.Unchecked += new System.Windows.RoutedEventHandler(this.tsbMainShow_Unchecked);

            #line default
            #line hidden
                return;

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

            case 8:
                this.tsbAutoShow = ((ControlLib.MTSwitchButton)(target));

            #line 40 "..\..\..\..\..\Log\WinStateAndAlarm\WinStateAndAlarm.xaml"
                this.tsbAutoShow.Checked += new System.Windows.RoutedEventHandler(this.tsbAutoShow_Checked);

            #line default
            #line hidden

            #line 40 "..\..\..\..\..\Log\WinStateAndAlarm\WinStateAndAlarm.xaml"
                this.tsbAutoShow.Unchecked += new System.Windows.RoutedEventHandler(this.tsbAutoShow_Unchecked);

            #line default
            #line hidden
                return;

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

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

            #line 42 "..\..\..\..\..\Log\WinStateAndAlarm\WinStateAndAlarm.xaml"
                this.chkTopMost.Checked += new System.Windows.RoutedEventHandler(this.chkTopMost_Checked);

            #line default
            #line hidden

            #line 42 "..\..\..\..\..\Log\WinStateAndAlarm\WinStateAndAlarm.xaml"
                this.chkTopMost.Unchecked += new System.Windows.RoutedEventHandler(this.chkTopMost_Unchecked);

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