public Product(int index, int id, ComponentsList coms)
 {
     InitializeComponent();
     this.Index = index;
     this.ID = id;
     this.coList = coms;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.btnComponents = ((System.Windows.Controls.Button)(target));
     
     #line 8 "..\..\MainWindow.xaml"
     this.btnComponents.Click += new System.Windows.RoutedEventHandler(this.btnComponents_Click);
     
     #line default
     #line hidden
     return;
     case 2:
     this.recComponentSelected = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 3:
     this.gridComponents = ((System.Windows.Controls.Grid)(target));
     return;
     case 4:
     this.compoList = ((DesktopBuilder.Controls.ComponentsList)(target));
     return;
     case 5:
     this.btnAdvisor = ((System.Windows.Controls.Button)(target));
     
     #line 26 "..\..\MainWindow.xaml"
     this.btnAdvisor.Click += new System.Windows.RoutedEventHandler(this.btnAdvisor_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.recAdvisorSelected = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 7:
     this.gridAdvisor = ((System.Windows.Controls.Grid)(target));
     return;
     case 8:
     this.Advisor = ((DesktopBuilder.Controls.DesktopAdvisor)(target));
     return;
     case 9:
     this.btnCustom = ((System.Windows.Controls.Button)(target));
     
     #line 44 "..\..\MainWindow.xaml"
     this.btnCustom.Click += new System.Windows.RoutedEventHandler(this.btnCustom_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.recCustomSelected = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 11:
     this.gridCustom = ((System.Windows.Controls.Grid)(target));
     return;
     case 12:
     this.Custom = ((DesktopBuilder.Controls.Customization)(target));
     return;
     case 13:
     this.OpenDtb = ((System.Windows.Controls.Button)(target));
     
     #line 63 "..\..\MainWindow.xaml"
     this.OpenDtb.Click += new System.Windows.RoutedEventHandler(this.OpenDtb_Click);
     
     #line default
     #line hidden
     return;
     case 14:
     this.gridDtb = ((System.Windows.Controls.Grid)(target));
     return;
     }
     this._contentLoaded = true;
 }