示例#1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MyGomoku = ((_1312658.Views.MainWindow)(target));
                return;

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

            case 3:
                this.btn_Pause = ((System.Windows.Controls.Button)(target));

            #line 15 "..\..\..\Views\MainWindow.xaml"
                this.btn_Pause.Click += new System.Windows.RoutedEventHandler(this.btn_Pause_Click);

            #line default
            #line hidden
                return;

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

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

            case 6:
                this.ChessBoardMain = ((_1312658.Views.ChessBoard)(target));
                return;

            case 7:
                this.Grid_Chat = ((System.Windows.Controls.Grid)(target));
                return;

            case 8:
                this.ChatMain = ((_1312658.Views.use_Chat)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.MyGomoku = ((_1312658.Views.MainWindow)(target));
     return;
     case 2:
     this.MySomoku = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.btn_Pause = ((System.Windows.Controls.Button)(target));
     
     #line 15 "..\..\..\Views\MainWindow.xaml"
     this.btn_Pause.Click += new System.Windows.RoutedEventHandler(this.btn_Pause_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.label = ((System.Windows.Controls.Label)(target));
     return;
     case 5:
     this.Gird_Caro = ((System.Windows.Controls.Grid)(target));
     return;
     case 6:
     this.ChessBoardMain = ((_1312658.Views.ChessBoard)(target));
     return;
     case 7:
     this.Grid_Chat = ((System.Windows.Controls.Grid)(target));
     return;
     case 8:
     this.ChatMain = ((_1312658.Views.use_Chat)(target));
     return;
     }
     this._contentLoaded = true;
 }