示例#1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.DeleteMessageBoxWindow = ((ES.UI.CommonControls.DeleteMessageBox)(target));
                return;

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

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

            case 4:
                this.txtWindowTitle = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.CloseButton = ((System.Windows.Controls.Button)(target));

            #line 65 "..\..\..\..\CommonControls\DeleteMessageBox.xaml"
                this.CloseButton.Click += new System.Windows.RoutedEventHandler(this.CloseButton_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.btnYes = ((System.Windows.Controls.Button)(target));

            #line 90 "..\..\..\..\CommonControls\DeleteMessageBox.xaml"
                this.btnYes.Click += new System.Windows.RoutedEventHandler(this.btnYes_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.btnNo = ((System.Windows.Controls.Button)(target));

            #line 98 "..\..\..\..\CommonControls\DeleteMessageBox.xaml"
                this.btnNo.Click += new System.Windows.RoutedEventHandler(this.btnNo_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.DeleteMessageBoxWindow = ((ES.UI.CommonControls.DeleteMessageBox)(target));
     return;
     case 2:
     this.ShellHeader = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.WindowHeader = ((System.Windows.Controls.Grid)(target));
     return;
     case 4:
     this.txtWindowTitle = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 5:
     this.CloseButton = ((System.Windows.Controls.Button)(target));
     
     #line 65 "..\..\..\..\CommonControls\DeleteMessageBox.xaml"
     this.CloseButton.Click += new System.Windows.RoutedEventHandler(this.CloseButton_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.btnYes = ((System.Windows.Controls.Button)(target));
     
     #line 90 "..\..\..\..\CommonControls\DeleteMessageBox.xaml"
     this.btnYes.Click += new System.Windows.RoutedEventHandler(this.btnYes_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.btnNo = ((System.Windows.Controls.Button)(target));
     
     #line 98 "..\..\..\..\CommonControls\DeleteMessageBox.xaml"
     this.btnNo.Click += new System.Windows.RoutedEventHandler(this.btnNo_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }