コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ucGameLogName = ((Dominion.NET_WPF.Controls.ucGameLog)(target));
                return;

            case 2:
                this.svArea = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 3:
                this.spArea = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 4:

            #line 16 "..\..\..\Controls\ucGameLog.xaml"
                ((System.Windows.Controls.ContextMenu)(target)).Opened += new System.Windows.RoutedEventHandler(this.ContextMenu_Opened);

            #line default
            #line hidden
                return;

            case 5:
                this.miViewGameLog = ((System.Windows.Controls.MenuItem)(target));

            #line 17 "..\..\..\Controls\ucGameLog.xaml"
                this.miViewGameLog.Click += new System.Windows.RoutedEventHandler(this.CurrentGame_ViewGameLog_Click);

            #line default
            #line hidden
                return;

            case 6:

            #line 18 "..\..\..\Controls\ucGameLog.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.miCollapseAll_Click);

            #line default
            #line hidden
                return;

            case 7:

            #line 19 "..\..\..\Controls\ucGameLog.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.miExpandAll_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.ucGameLogName = ((Dominion.NET_WPF.Controls.ucGameLog)(target));
     return;
     case 2:
     this.svArea = ((System.Windows.Controls.ScrollViewer)(target));
     return;
     case 3:
     this.spArea = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 4:
     
     #line 16 "..\..\..\Controls\ucGameLog.xaml"
     ((System.Windows.Controls.ContextMenu)(target)).Opened += new System.Windows.RoutedEventHandler(this.ContextMenu_Opened);
     
     #line default
     #line hidden
     return;
     case 5:
     this.miViewGameLog = ((System.Windows.Controls.MenuItem)(target));
     
     #line 17 "..\..\..\Controls\ucGameLog.xaml"
     this.miViewGameLog.Click += new System.Windows.RoutedEventHandler(this.CurrentGame_ViewGameLog_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     
     #line 18 "..\..\..\Controls\ucGameLog.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.miCollapseAll_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     
     #line 19 "..\..\..\Controls\ucGameLog.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.miExpandAll_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }