Esempio n. 1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.Lobby = ((BattleShip.LobbyPage)(target));
     return;
     case 3:
     this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
     return;
     case 4:
     this.userlist = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 5:
     this.chat = ((BattleShip.Chat)(target));
     return;
     case 6:
     this.GameList = ((System.Windows.Controls.ListView)(target));
     return;
     case 7:
     this.createGameButton = ((System.Windows.Controls.Button)(target));
     
     #line 141 "..\..\..\LobbyPage.xaml"
     this.createGameButton.Click += new System.Windows.RoutedEventHandler(this.createGameButton_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.randomGameButton = ((System.Windows.Controls.Button)(target));
     
     #line 151 "..\..\..\LobbyPage.xaml"
     this.randomGameButton.Click += new System.Windows.RoutedEventHandler(this.randomGameButton_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.CreateGameDialog = ((BattleShip.CreateGameDialog)(target));
     return;
     }
     this._contentLoaded = true;
 }
Esempio n. 2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.Page = ((BattleShip.GameWindowPage)(target));
     
     #line 9 "..\..\GameWindowPage.xaml"
     this.Page.Initialized += new System.EventHandler(this.Page_Initialized);
     
     #line default
     #line hidden
     return;
     case 2:
     this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.myGamePanel = ((BattleShip.GamePanel)(target));
     return;
     case 4:
     this.enemyPanel = ((BattleShip.GamePanel)(target));
     return;
     case 5:
     this.Log = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 6:
     this.Chat = ((BattleShip.Chat)(target));
     return;
     }
     this._contentLoaded = true;
 }