示例#1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.GameOffline = ((GOMOKU.View.Gameoffline)(target));
     
     #line 4 "..\..\..\View\Gameoffline.xaml"
     this.GameOffline.SizeChanged += new System.Windows.SizeChangedEventHandler(this.GameOffline_SizeChanged);
     
     #line default
     #line hidden
     return;
     case 2:
     this.Board = ((System.Windows.Controls.Primitives.UniformGrid)(target));
     
     #line 18 "..\..\..\View\Gameoffline.xaml"
     this.Board.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Board_MouseDown);
     
     #line default
     #line hidden
     return;
     case 3:
     this.NamePlayer1 = ((System.Windows.Controls.Label)(target));
     return;
     case 4:
     this.NamePlayer2 = ((System.Windows.Controls.Label)(target));
     return;
     case 5:
     this.ButtonNewgame = ((System.Windows.Controls.Button)(target));
     
     #line 23 "..\..\..\View\Gameoffline.xaml"
     this.ButtonNewgame.Click += new System.Windows.RoutedEventHandler(this.ButtonNewgame_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.ButtonPvsP = ((System.Windows.Controls.Button)(target));
     
     #line 31 "..\..\..\View\Gameoffline.xaml"
     this.ButtonPvsP.Click += new System.Windows.RoutedEventHandler(this.ButtonPvsP_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.ButtonPvsCOM = ((System.Windows.Controls.Button)(target));
     
     #line 32 "..\..\..\View\Gameoffline.xaml"
     this.ButtonPvsCOM.Click += new System.Windows.RoutedEventHandler(this.ButtonPvsCOM_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.ButtonQuit = ((System.Windows.Controls.Button)(target));
     
     #line 33 "..\..\..\View\Gameoffline.xaml"
     this.ButtonQuit.Click += new System.Windows.RoutedEventHandler(this.ButtonQuit_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.GameOffline = ((GOMOKU.View.Gameoffline)(target));

            #line 4 "..\..\..\View\Gameoffline.xaml"
                this.GameOffline.SizeChanged += new System.Windows.SizeChangedEventHandler(this.GameOffline_SizeChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.Board = ((System.Windows.Controls.Primitives.UniformGrid)(target));

            #line 18 "..\..\..\View\Gameoffline.xaml"
                this.Board.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Board_MouseDown);

            #line default
            #line hidden
                return;

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

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

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

            #line 23 "..\..\..\View\Gameoffline.xaml"
                this.ButtonNewgame.Click += new System.Windows.RoutedEventHandler(this.ButtonNewgame_Click);

            #line default
            #line hidden
                return;

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

            #line 31 "..\..\..\View\Gameoffline.xaml"
                this.ButtonPvsP.Click += new System.Windows.RoutedEventHandler(this.ButtonPvsP_Click);

            #line default
            #line hidden
                return;

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

            #line 32 "..\..\..\View\Gameoffline.xaml"
                this.ButtonPvsCOM.Click += new System.Windows.RoutedEventHandler(this.ButtonPvsCOM_Click);

            #line default
            #line hidden
                return;

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

            #line 33 "..\..\..\View\Gameoffline.xaml"
                this.ButtonQuit.Click += new System.Windows.RoutedEventHandler(this.ButtonQuit_Click);

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