void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.This = ((Dominion.NET_WPF.wSettings)(target));
                return;

            case 2:
                this.bCancel = ((Dominion.NET_WPF.Controls.ucButton)(target));
                return;

            case 3:
                this.bOk = ((Dominion.NET_WPF.Controls.ucButton)(target));
                return;

            case 4:
                this.tabControl1 = ((System.Windows.Controls.TabControl)(target));

            #line 42 "..\..\wSettings.xaml"
                this.tabControl1.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.tabControl1_SelectionChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.tiPlayer = ((System.Windows.Controls.TabItem)(target));
                return;

            case 6:
                this.dockPanel2 = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 7:
                this.dockPanel1 = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 8:
                this.slidNumPlayers = ((System.Windows.Controls.Slider)(target));

            #line 50 "..\..\wSettings.xaml"
                this.slidNumPlayers.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.slidNumPlayers_ValueChanged);

            #line default
            #line hidden
                return;

            case 9:
                this.tbPlayersNum = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 10:
                this.textBox1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 11:
                this.dockPanel3 = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 12:
                this.slidHumanPlayers = ((System.Windows.Controls.Slider)(target));

            #line 55 "..\..\wSettings.xaml"
                this.slidHumanPlayers.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.slidHumanPlayers_ValueChanged);

            #line default
            #line hidden
                return;

            case 13:
                this.tbPlayersHuman = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 14:
                this.textBox2 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 15:
                this.spPlayers = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 16:
                this.ucPS1 = ((Dominion.NET_WPF.Controls.ucPlayerSettings)(target));
                return;

            case 17:
                this.ucPS2 = ((Dominion.NET_WPF.Controls.ucPlayerSettings)(target));
                return;

            case 18:
                this.ucPS3 = ((Dominion.NET_WPF.Controls.ucPlayerSettings)(target));
                return;

            case 19:
                this.ucPS4 = ((Dominion.NET_WPF.Controls.ucPlayerSettings)(target));
                return;

            case 20:
                this.ucPS5 = ((Dominion.NET_WPF.Controls.ucPlayerSettings)(target));
                return;

            case 21:
                this.ucPS6 = ((Dominion.NET_WPF.Controls.ucPlayerSettings)(target));
                return;

            case 22:
                this.cbRandomUnique = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 23:
                this.lbAISelection = ((System.Windows.Controls.ListBox)(target));
                return;

            case 24:
                this.tiAutomation = ((System.Windows.Controls.TabItem)(target));
                return;

            case 25:
                this.cbChooser_AutomaticallyClickWhenSatisfied = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 26:
                this.cbNeverBuyCopperCurse = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 27:
                this.cbChooser_AutomaticallyRevealMoat = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 28:
                this.cbChooser_AutomaticallyRevealProvince = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 29:
                this.cbChooser_AutomaticallyMoveStashToTop = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 30:
                this.cbChooser_AutomaticallyPlayTreasures = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 31:
                this.spAutoPlayTreasuresOptions = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 32:
                this.cbChooser_AutomaticallyPlayTreasuresLoan = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 33:
                this.spAutoPlayTreasuresLoanOptions = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 34:
                this.rbChooser_AutomaticallyPlayTreasuresLoanBeforeVenture = ((System.Windows.Controls.RadioButton)(target));

            #line 198 "..\..\wSettings.xaml"
                this.rbChooser_AutomaticallyPlayTreasuresLoanBeforeVenture.Checked += new System.Windows.RoutedEventHandler(this.rbChooser_AutomaticallyPlayTreasuresLoanBeforeVenture_Checked);

            #line default
            #line hidden
                return;

            case 35:
                this.rbChooser_AutomaticallyPlayTreasuresVentureBeforeLoan = ((System.Windows.Controls.RadioButton)(target));

            #line 201 "..\..\wSettings.xaml"
                this.rbChooser_AutomaticallyPlayTreasuresVentureBeforeLoan.Checked += new System.Windows.RoutedEventHandler(this.rbChooser_AutomaticallyPlayTreasuresVentureBeforeLoan_Checked);

            #line default
            #line hidden
                return;

            case 36:
                this.cbChooser_AutomaticallyPlayTreasuresHornOfPlenty = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 37:
                this.spAutoPlayTreasuresHornOfPlentyOptions = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 38:
                this.rbChooser_AutomaticallyPlayTreasuresHornOfPlentyBeforeBank = ((System.Windows.Controls.RadioButton)(target));

            #line 221 "..\..\wSettings.xaml"
                this.rbChooser_AutomaticallyPlayTreasuresHornOfPlentyBeforeBank.Checked += new System.Windows.RoutedEventHandler(this.rbChooser_AutomaticallyPlayTreasuresHornOfPlentyBeforeBank_Checked);

            #line default
            #line hidden
                return;

            case 39:
                this.rbChooser_AutomaticallyPlayTreasuresBankBeforeHornOfPlenty = ((System.Windows.Controls.RadioButton)(target));

            #line 224 "..\..\wSettings.xaml"
                this.rbChooser_AutomaticallyPlayTreasuresBankBeforeHornOfPlenty.Checked += new System.Windows.RoutedEventHandler(this.rbChooser_AutomaticallyPlayTreasuresBankBeforeHornOfPlenty_Checked);

            #line default
            #line hidden
                return;

            case 40:
                this.tiUISettings = ((System.Windows.Controls.TabItem)(target));
                return;

            case 41:
                this.dpToolTipDuration = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 42:
                this.slidToolTipDuration = ((System.Windows.Controls.Slider)(target));

            #line 259 "..\..\wSettings.xaml"
                this.slidToolTipDuration.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.slidToolTipDuration_ValueChanged);

            #line default
            #line hidden
                return;

            case 43:
                this.tbToolTipDuration = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 44:
                this.tbToolTipExtra = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 45:
                this.cbToolTipClick = ((System.Windows.Controls.CheckBox)(target));

            #line 276 "..\..\wSettings.xaml"
                this.cbToolTipClick.Checked += new System.Windows.RoutedEventHandler(this.cbToolTipClick_Checked);

            #line default
            #line hidden
                return;

            case 46:
                this.cbLayoutStyle = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 47:
                this.cbGameLogLocation = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 48:
                this.cbDisplaySupplyNames = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 49:
                this.cbDisplayBasicSupplyNames = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 50:
                this.cbPromptActions = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 51:
                this.cbPromptBuy = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 52:
                this.cbPromptBuy_NoCrap = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 53:
                this.cbAutoCollapse = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 54:
                this.tiCustomImages = ((System.Windows.Controls.TabItem)(target));
                return;

            case 55:
                this.cbUseCustomImages = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 56:
                this.spUseCustomImages = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 57:

            #line 332 "..\..\wSettings.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.smallCardIconBrowse_Click);

            #line default
            #line hidden
                return;

            case 58:
                this.tbCustomImagesPathSmall = ((System.Windows.Controls.TextBox)(target));
                return;

            case 59:

            #line 337 "..\..\wSettings.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.mediumCardIconBrowse_Click);

            #line default
            #line hidden
                return;

            case 60:
                this.tbCustomImagesPathMedium = ((System.Windows.Controls.TextBox)(target));
                return;

            case 61:
                this.cbUseCustomToolTips = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 62:
                this.spUseCustomToolTips = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 63:

            #line 358 "..\..\wSettings.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.cardToolTipBrowse_Click);

            #line default
            #line hidden
                return;

            case 64:
                this.tbCustomToolTipsPath = ((System.Windows.Controls.TextBox)(target));
                return;

            case 65:
                this.tiKingdomCardSetup = ((System.Windows.Controls.TabItem)(target));
                return;

            case 66:
                this.cbIdenticalStartingHands = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 67:
                this.cbAutomaticallyAcceptKingdomCards = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 68:
                this.cbForceColonyPlatinum = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 69:
                this.cbForceShelters = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 70:
                this.cbUsePreset = ((System.Windows.Controls.CheckBox)(target));

            #line 403 "..\..\wSettings.xaml"
                this.cbUsePreset.Checked += new System.Windows.RoutedEventHandler(this.cbUsePreset_Checked);

            #line default
            #line hidden

            #line 403 "..\..\wSettings.xaml"
                this.cbUsePreset.Unchecked += new System.Windows.RoutedEventHandler(this.cbUsePreset_Checked);

            #line default
            #line hidden
                return;

            case 71:
                this.olCardsUsed = ((Dominion.NET_WPF.Controls.ucObjectList)(target));
                return;

            case 72:
                this.cbShowPresetCards = ((System.Windows.Controls.CheckBox)(target));

            #line 408 "..\..\wSettings.xaml"
                this.cbShowPresetCards.Checked += new System.Windows.RoutedEventHandler(this.cbShowPresetCards_Checked);

            #line default
            #line hidden

            #line 408 "..\..\wSettings.xaml"
                this.cbShowPresetCards.Unchecked += new System.Windows.RoutedEventHandler(this.cbShowPresetCards_Checked);

            #line default
            #line hidden
                return;

            case 73:
                this.cbPresets = ((System.Windows.Controls.ComboBox)(target));

            #line 411 "..\..\wSettings.xaml"
                this.cbPresets.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbPresets_SelectionChanged);

            #line default
            #line hidden
                return;

            case 74:
                this.gbCardConstraints = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 75:
                this.ucccConstraints = ((Dominion.NET_WPF.Controls.ucCardConstraints)(target));
                return;

            case 76:
                this.tiCardSettings = ((System.Windows.Controls.TabItem)(target));
                return;

            case 77:
                this.icCardSettings = ((System.Windows.Controls.ItemsControl)(target));
                return;

            case 78:
                this.tiSetGroupInformation = ((System.Windows.Controls.TabItem)(target));
                return;

            case 79:
                this.cbSet = ((System.Windows.Controls.ComboBox)(target));

            #line 431 "..\..\wSettings.xaml"
                this.cbSet.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbSet_SelectionChanged);

            #line default
            #line hidden
                return;

            case 80:
                this.cbCategory = ((System.Windows.Controls.ComboBox)(target));

            #line 439 "..\..\wSettings.xaml"
                this.cbCategory.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbCategory_SelectionChanged);

            #line default
            #line hidden
                return;

            case 81:
                this.cbGroup = ((System.Windows.Controls.ComboBox)(target));

            #line 447 "..\..\wSettings.xaml"
                this.cbGroup.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbGroup_SelectionChanged);

            #line default
            #line hidden
                return;

            case 82:
                this.cbFullCardView = ((System.Windows.Controls.CheckBox)(target));

            #line 454 "..\..\wSettings.xaml"
                this.cbFullCardView.Checked += new System.Windows.RoutedEventHandler(this.cbFullCardView_Checked);

            #line default
            #line hidden

            #line 454 "..\..\wSettings.xaml"
                this.cbFullCardView.Unchecked += new System.Windows.RoutedEventHandler(this.cbFullCardView_Checked);

            #line default
            #line hidden
                return;

            case 83:
                this.gbSetCategoryGroupDisplay = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 84:
                this.tbMatchingCount = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 85:
                this.bSetCategoryGroupDisplayHorizontal = ((System.Windows.Controls.Border)(target));
                return;

            case 86:

            #line 474 "..\..\wSettings.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 474 "..\..\wSettings.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseLeftButtonUp);

            #line default
            #line hidden

            #line 474 "..\..\wSettings.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.Grid_MouseMove);

            #line default
            #line hidden
                return;

            case 87:
                this.bSetCategoryGroupDisplayVertical = ((System.Windows.Controls.Border)(target));
                return;

            case 88:
                this.svSetCategoryGroupDisplay = ((System.Windows.Controls.ScrollViewer)(target));

            #line 479 "..\..\wSettings.xaml"
                this.svSetCategoryGroupDisplay.ScrollChanged += new System.Windows.Controls.ScrollChangedEventHandler(this.svSetCategoryGroupDisplay_ScrollChanged);

            #line default
            #line hidden
                return;

            case 89:
                this.wpSetCategoryGroupDisplay = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 90:
                this.cccSetCategoryGroupDisplay = ((Dominion.NET_WPF.CardCollectionControl)(target));
                return;

            case 91:
                this.bOpacityLayerTop = ((System.Windows.Controls.Border)(target));
                return;

            case 92:
                this.bOpacityLayerLeft = ((System.Windows.Controls.Border)(target));
                return;

            case 93:
                this.bOpacityLayerRight = ((System.Windows.Controls.Border)(target));
                return;

            case 94:
                this.bOpacityLayerBottom = ((System.Windows.Controls.Border)(target));
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.This = ((Dominion.NET_WPF.wSettings)(target));
     return;
     case 2:
     this.bCancel = ((Dominion.NET_WPF.Controls.ucButton)(target));
     return;
     case 3:
     this.bOk = ((Dominion.NET_WPF.Controls.ucButton)(target));
     return;
     case 4:
     this.tabControl1 = ((System.Windows.Controls.TabControl)(target));
     
     #line 42 "..\..\wSettings.xaml"
     this.tabControl1.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.tabControl1_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 5:
     this.tiPlayer = ((System.Windows.Controls.TabItem)(target));
     return;
     case 6:
     this.dockPanel2 = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 7:
     this.dockPanel1 = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 8:
     this.slidNumPlayers = ((System.Windows.Controls.Slider)(target));
     
     #line 50 "..\..\wSettings.xaml"
     this.slidNumPlayers.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.slidNumPlayers_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 9:
     this.tbPlayersNum = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 10:
     this.textBox1 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 11:
     this.dockPanel3 = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 12:
     this.slidHumanPlayers = ((System.Windows.Controls.Slider)(target));
     
     #line 55 "..\..\wSettings.xaml"
     this.slidHumanPlayers.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.slidHumanPlayers_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 13:
     this.tbPlayersHuman = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 14:
     this.textBox2 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 15:
     this.spPlayers = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 16:
     this.ucPS1 = ((Dominion.NET_WPF.Controls.ucPlayerSettings)(target));
     return;
     case 17:
     this.ucPS2 = ((Dominion.NET_WPF.Controls.ucPlayerSettings)(target));
     return;
     case 18:
     this.ucPS3 = ((Dominion.NET_WPF.Controls.ucPlayerSettings)(target));
     return;
     case 19:
     this.ucPS4 = ((Dominion.NET_WPF.Controls.ucPlayerSettings)(target));
     return;
     case 20:
     this.ucPS5 = ((Dominion.NET_WPF.Controls.ucPlayerSettings)(target));
     return;
     case 21:
     this.ucPS6 = ((Dominion.NET_WPF.Controls.ucPlayerSettings)(target));
     return;
     case 22:
     this.cbRandomUnique = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 23:
     this.lbAISelection = ((System.Windows.Controls.ListBox)(target));
     return;
     case 24:
     this.tiAutomation = ((System.Windows.Controls.TabItem)(target));
     return;
     case 25:
     this.cbChooser_AutomaticallyClickWhenSatisfied = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 26:
     this.cbNeverBuyCopperCurse = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 27:
     this.cbChooser_AutomaticallyRevealMoat = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 28:
     this.cbChooser_AutomaticallyRevealProvince = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 29:
     this.cbChooser_AutomaticallyMoveStashToTop = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 30:
     this.cbChooser_AutomaticallyPlayTreasures = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 31:
     this.spAutoPlayTreasuresOptions = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 32:
     this.cbChooser_AutomaticallyPlayTreasuresLoan = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 33:
     this.spAutoPlayTreasuresLoanOptions = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 34:
     this.rbChooser_AutomaticallyPlayTreasuresLoanBeforeVenture = ((System.Windows.Controls.RadioButton)(target));
     
     #line 198 "..\..\wSettings.xaml"
     this.rbChooser_AutomaticallyPlayTreasuresLoanBeforeVenture.Checked += new System.Windows.RoutedEventHandler(this.rbChooser_AutomaticallyPlayTreasuresLoanBeforeVenture_Checked);
     
     #line default
     #line hidden
     return;
     case 35:
     this.rbChooser_AutomaticallyPlayTreasuresVentureBeforeLoan = ((System.Windows.Controls.RadioButton)(target));
     
     #line 201 "..\..\wSettings.xaml"
     this.rbChooser_AutomaticallyPlayTreasuresVentureBeforeLoan.Checked += new System.Windows.RoutedEventHandler(this.rbChooser_AutomaticallyPlayTreasuresVentureBeforeLoan_Checked);
     
     #line default
     #line hidden
     return;
     case 36:
     this.cbChooser_AutomaticallyPlayTreasuresHornOfPlenty = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 37:
     this.spAutoPlayTreasuresHornOfPlentyOptions = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 38:
     this.rbChooser_AutomaticallyPlayTreasuresHornOfPlentyBeforeBank = ((System.Windows.Controls.RadioButton)(target));
     
     #line 221 "..\..\wSettings.xaml"
     this.rbChooser_AutomaticallyPlayTreasuresHornOfPlentyBeforeBank.Checked += new System.Windows.RoutedEventHandler(this.rbChooser_AutomaticallyPlayTreasuresHornOfPlentyBeforeBank_Checked);
     
     #line default
     #line hidden
     return;
     case 39:
     this.rbChooser_AutomaticallyPlayTreasuresBankBeforeHornOfPlenty = ((System.Windows.Controls.RadioButton)(target));
     
     #line 224 "..\..\wSettings.xaml"
     this.rbChooser_AutomaticallyPlayTreasuresBankBeforeHornOfPlenty.Checked += new System.Windows.RoutedEventHandler(this.rbChooser_AutomaticallyPlayTreasuresBankBeforeHornOfPlenty_Checked);
     
     #line default
     #line hidden
     return;
     case 40:
     this.tiUISettings = ((System.Windows.Controls.TabItem)(target));
     return;
     case 41:
     this.dpToolTipDuration = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 42:
     this.slidToolTipDuration = ((System.Windows.Controls.Slider)(target));
     
     #line 259 "..\..\wSettings.xaml"
     this.slidToolTipDuration.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.slidToolTipDuration_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 43:
     this.tbToolTipDuration = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 44:
     this.tbToolTipExtra = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 45:
     this.cbToolTipClick = ((System.Windows.Controls.CheckBox)(target));
     
     #line 276 "..\..\wSettings.xaml"
     this.cbToolTipClick.Checked += new System.Windows.RoutedEventHandler(this.cbToolTipClick_Checked);
     
     #line default
     #line hidden
     return;
     case 46:
     this.cbLayoutStyle = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 47:
     this.cbGameLogLocation = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 48:
     this.cbDisplaySupplyNames = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 49:
     this.cbDisplayBasicSupplyNames = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 50:
     this.cbPromptActions = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 51:
     this.cbPromptBuy = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 52:
     this.cbPromptBuy_NoCrap = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 53:
     this.cbAutoCollapse = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 54:
     this.tiCustomImages = ((System.Windows.Controls.TabItem)(target));
     return;
     case 55:
     this.cbUseCustomImages = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 56:
     this.spUseCustomImages = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 57:
     
     #line 332 "..\..\wSettings.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.smallCardIconBrowse_Click);
     
     #line default
     #line hidden
     return;
     case 58:
     this.tbCustomImagesPathSmall = ((System.Windows.Controls.TextBox)(target));
     return;
     case 59:
     
     #line 337 "..\..\wSettings.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.mediumCardIconBrowse_Click);
     
     #line default
     #line hidden
     return;
     case 60:
     this.tbCustomImagesPathMedium = ((System.Windows.Controls.TextBox)(target));
     return;
     case 61:
     this.cbUseCustomToolTips = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 62:
     this.spUseCustomToolTips = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 63:
     
     #line 358 "..\..\wSettings.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.cardToolTipBrowse_Click);
     
     #line default
     #line hidden
     return;
     case 64:
     this.tbCustomToolTipsPath = ((System.Windows.Controls.TextBox)(target));
     return;
     case 65:
     this.tiKingdomCardSetup = ((System.Windows.Controls.TabItem)(target));
     return;
     case 66:
     this.cbIdenticalStartingHands = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 67:
     this.cbAutomaticallyAcceptKingdomCards = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 68:
     this.cbForceColonyPlatinum = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 69:
     this.cbForceShelters = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 70:
     this.cbUsePreset = ((System.Windows.Controls.CheckBox)(target));
     
     #line 403 "..\..\wSettings.xaml"
     this.cbUsePreset.Checked += new System.Windows.RoutedEventHandler(this.cbUsePreset_Checked);
     
     #line default
     #line hidden
     
     #line 403 "..\..\wSettings.xaml"
     this.cbUsePreset.Unchecked += new System.Windows.RoutedEventHandler(this.cbUsePreset_Checked);
     
     #line default
     #line hidden
     return;
     case 71:
     this.olCardsUsed = ((Dominion.NET_WPF.Controls.ucObjectList)(target));
     return;
     case 72:
     this.cbShowPresetCards = ((System.Windows.Controls.CheckBox)(target));
     
     #line 408 "..\..\wSettings.xaml"
     this.cbShowPresetCards.Checked += new System.Windows.RoutedEventHandler(this.cbShowPresetCards_Checked);
     
     #line default
     #line hidden
     
     #line 408 "..\..\wSettings.xaml"
     this.cbShowPresetCards.Unchecked += new System.Windows.RoutedEventHandler(this.cbShowPresetCards_Checked);
     
     #line default
     #line hidden
     return;
     case 73:
     this.cbPresets = ((System.Windows.Controls.ComboBox)(target));
     
     #line 411 "..\..\wSettings.xaml"
     this.cbPresets.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbPresets_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 74:
     this.gbCardConstraints = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 75:
     this.ucccConstraints = ((Dominion.NET_WPF.Controls.ucCardConstraints)(target));
     return;
     case 76:
     this.tiCardSettings = ((System.Windows.Controls.TabItem)(target));
     return;
     case 77:
     this.icCardSettings = ((System.Windows.Controls.ItemsControl)(target));
     return;
     case 78:
     this.tiSetGroupInformation = ((System.Windows.Controls.TabItem)(target));
     return;
     case 79:
     this.cbSet = ((System.Windows.Controls.ComboBox)(target));
     
     #line 431 "..\..\wSettings.xaml"
     this.cbSet.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbSet_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 80:
     this.cbCategory = ((System.Windows.Controls.ComboBox)(target));
     
     #line 439 "..\..\wSettings.xaml"
     this.cbCategory.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbCategory_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 81:
     this.cbGroup = ((System.Windows.Controls.ComboBox)(target));
     
     #line 447 "..\..\wSettings.xaml"
     this.cbGroup.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbGroup_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 82:
     this.cbFullCardView = ((System.Windows.Controls.CheckBox)(target));
     
     #line 454 "..\..\wSettings.xaml"
     this.cbFullCardView.Checked += new System.Windows.RoutedEventHandler(this.cbFullCardView_Checked);
     
     #line default
     #line hidden
     
     #line 454 "..\..\wSettings.xaml"
     this.cbFullCardView.Unchecked += new System.Windows.RoutedEventHandler(this.cbFullCardView_Checked);
     
     #line default
     #line hidden
     return;
     case 83:
     this.gbSetCategoryGroupDisplay = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 84:
     this.tbMatchingCount = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 85:
     this.bSetCategoryGroupDisplayHorizontal = ((System.Windows.Controls.Border)(target));
     return;
     case 86:
     
     #line 474 "..\..\wSettings.xaml"
     ((System.Windows.Controls.Grid)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseLeftButtonDown);
     
     #line default
     #line hidden
     
     #line 474 "..\..\wSettings.xaml"
     ((System.Windows.Controls.Grid)(target)).MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseLeftButtonUp);
     
     #line default
     #line hidden
     
     #line 474 "..\..\wSettings.xaml"
     ((System.Windows.Controls.Grid)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.Grid_MouseMove);
     
     #line default
     #line hidden
     return;
     case 87:
     this.bSetCategoryGroupDisplayVertical = ((System.Windows.Controls.Border)(target));
     return;
     case 88:
     this.svSetCategoryGroupDisplay = ((System.Windows.Controls.ScrollViewer)(target));
     
     #line 479 "..\..\wSettings.xaml"
     this.svSetCategoryGroupDisplay.ScrollChanged += new System.Windows.Controls.ScrollChangedEventHandler(this.svSetCategoryGroupDisplay_ScrollChanged);
     
     #line default
     #line hidden
     return;
     case 89:
     this.wpSetCategoryGroupDisplay = ((System.Windows.Controls.WrapPanel)(target));
     return;
     case 90:
     this.cccSetCategoryGroupDisplay = ((Dominion.NET_WPF.CardCollectionControl)(target));
     return;
     case 91:
     this.bOpacityLayerTop = ((System.Windows.Controls.Border)(target));
     return;
     case 92:
     this.bOpacityLayerLeft = ((System.Windows.Controls.Border)(target));
     return;
     case 93:
     this.bOpacityLayerRight = ((System.Windows.Controls.Border)(target));
     return;
     case 94:
     this.bOpacityLayerBottom = ((System.Windows.Controls.Border)(target));
     return;
     }
     this._contentLoaded = true;
 }
		private void Game_Settings_Click(object sender, RoutedEventArgs e)
		{
			wSettings settingsDialogBox = new wSettings(ref _Settings);
			settingsDialogBox.Owner = this;
			if (settingsDialogBox.ShowDialog() == true)
			{
				wMain.Settings.Save();
				this.DataContext = null;
				this.DataContext = wMain.Settings;

				LayoutSupplyPiles();
			}
		}