コード例 #1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.GameWindow = ((HLife.MainWindow)(target));
     
     #line 8 "..\..\..\..\..\GUI\Windows\MainWindow.xaml"
     this.GameWindow.Unloaded += new System.Windows.RoutedEventHandler(this.GameWindow_Unloaded);
     
     #line default
     #line hidden
     
     #line 8 "..\..\..\..\..\GUI\Windows\MainWindow.xaml"
     this.GameWindow.PreviewKeyUp += new System.Windows.Input.KeyEventHandler(this.GameWindow_PreviewKeyUp);
     
     #line default
     #line hidden
     return;
     case 2:
     this.grid_Main = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.tabs_Location = ((System.Windows.Controls.TabControl)(target));
     return;
     case 4:
     this.tab_Info = ((System.Windows.Controls.TabItem)(target));
     return;
     case 5:
     this.tab_Occupants = ((System.Windows.Controls.TabItem)(target));
     return;
     case 6:
     this.grid_Occupants = ((System.Windows.Controls.Grid)(target));
     return;
     case 7:
     this.wrap_Occupants = ((System.Windows.Controls.WrapPanel)(target));
     return;
     case 8:
     this.pagination = ((HLife.PagingControl)(target));
     return;
     case 9:
     this.tab_Inventory = ((System.Windows.Controls.TabItem)(target));
     return;
     case 10:
     this.grid_Inventory = ((System.Windows.Controls.Grid)(target));
     return;
     case 11:
     this.wrap_Inventory = ((System.Windows.Controls.WrapPanel)(target));
     return;
     case 12:
     this.menu_Toolbar = ((System.Windows.Controls.Menu)(target));
     return;
     case 13:
     this.menuItem_File = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 14:
     this.menuItem_Edit = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 15:
     this.lbl_Date = ((System.Windows.Controls.Label)(target));
     return;
     case 16:
     this.grid_View = ((System.Windows.Controls.Grid)(target));
     return;
     case 17:
     this.img_LocationBackground = ((System.Windows.Controls.Image)(target));
     
     #line 38 "..\..\..\..\..\GUI\Windows\MainWindow.xaml"
     this.img_LocationBackground.Unloaded += new System.Windows.RoutedEventHandler(this.img_LocationBackground_Unloaded);
     
     #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.GameWindow = ((HLife.MainWindow)(target));
     return;
     case 2:
     this.grid_Main = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.grid_View = ((System.Windows.Controls.Grid)(target));
     return;
     case 4:
     this.media_LocationBackground = ((System.Windows.Controls.MediaElement)(target));
     return;
     case 5:
     this.tabs_Location = ((System.Windows.Controls.TabControl)(target));
     return;
     case 6:
     this.tab_Info = ((System.Windows.Controls.TabItem)(target));
     return;
     case 7:
     this.tab_Occupants = ((System.Windows.Controls.TabItem)(target));
     return;
     case 8:
     this.tab_Inventory = ((System.Windows.Controls.TabItem)(target));
     return;
     case 9:
     this.menu_Toolbar = ((System.Windows.Controls.Menu)(target));
     return;
     case 10:
     this.menuItem_File = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 11:
     this.menuItem_Edit = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 12:
     this.label = ((System.Windows.Controls.Label)(target));
     return;
     }
     this._contentLoaded = true;
 }