Example #1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.load = ((FlightBoardX.PlaneModels)(target));
     return;
     case 2:
     this.NameTextBox = ((System.Windows.Controls.TextBox)(target));
     return;
     case 3:
     this.CostTextBox = ((System.Windows.Controls.TextBox)(target));
     return;
     case 4:
     this.FuelTextBox = ((System.Windows.Controls.TextBox)(target));
     return;
     case 5:
     this.ModelsDataGrid = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 6:
     this.AddButton = ((System.Windows.Controls.Button)(target));
     return;
     case 7:
     this.CloseButton = ((System.Windows.Controls.Button)(target));
     return;
     case 8:
     this.DeleteButton = ((System.Windows.Controls.Button)(target));
     return;
     }
     this._contentLoaded = true;
 }
Example #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.load = ((FlightBoardX.PlaneModels)(target));
     
     #line 7 "..\..\PlaneModels.xaml"
     this.load.Loaded += new System.Windows.RoutedEventHandler(this.load_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.NameTextBox = ((System.Windows.Controls.TextBox)(target));
     return;
     case 3:
     this.CostTextBox = ((System.Windows.Controls.TextBox)(target));
     return;
     case 4:
     this.FuelTextBox = ((System.Windows.Controls.TextBox)(target));
     return;
     case 5:
     this.ModelsDataGrid = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 6:
     this.AddButton = ((System.Windows.Controls.Button)(target));
     
     #line 20 "..\..\PlaneModels.xaml"
     this.AddButton.Click += new System.Windows.RoutedEventHandler(this.AddButton_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.CloseButton = ((System.Windows.Controls.Button)(target));
     
     #line 21 "..\..\PlaneModels.xaml"
     this.CloseButton.Click += new System.Windows.RoutedEventHandler(this.CloseButton_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.DeleteButton = ((System.Windows.Controls.Button)(target));
     
     #line 22 "..\..\PlaneModels.xaml"
     this.DeleteButton.Click += new System.Windows.RoutedEventHandler(this.DeleteButton_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }