Ejemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.AppWindow = ((BergsonMatchesUpgraded.MainWindow)(target));

            #line 5 "..\..\..\MainWindow.xaml"
                this.AppWindow.Closed += new System.EventHandler(this.AppWindow_Closed);

            #line default
            #line hidden
                return;

            case 2:
                this.MenuGame = ((System.Windows.Controls.Menu)(target));
                return;

            case 3:

            #line 18 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.NewGameMenuItem_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.SettingsMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 25 "..\..\..\MainWindow.xaml"
                this.SettingsMenuItem.Click += new System.Windows.RoutedEventHandler(this.SettingsMenuItem_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.ExitMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 27 "..\..\..\MainWindow.xaml"
                this.ExitMenuItem.Click += new System.Windows.RoutedEventHandler(this.ExitMenuItem_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.RulesMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 30 "..\..\..\MainWindow.xaml"
                this.RulesMenuItem.Click += new System.Windows.RoutedEventHandler(this.RulesMenuItem_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.AboutMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 32 "..\..\..\MainWindow.xaml"
                this.AboutMenuItem.Click += new System.Windows.RoutedEventHandler(this.AboutMenuItem_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.IntegerUpDownInput = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target));
                return;

            case 9:
                this.ButtonConfirm = ((System.Windows.Controls.Button)(target));

            #line 36 "..\..\..\MainWindow.xaml"
                this.ButtonConfirm.Click += new System.Windows.RoutedEventHandler(this.ButtonConfirm_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.Label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.Label2 = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.LabelAmountMatches = ((System.Windows.Controls.Label)(target));
                return;

            case 13:
                this.Label3 = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.LabelDifficulty = ((System.Windows.Controls.Label)(target));
                return;

            case 15:
                this.Label4 = ((System.Windows.Controls.Label)(target));
                return;

            case 16:
                this.LabelFoe = ((System.Windows.Controls.Label)(target));
                return;

            case 17:
                this.ButtonSounds = ((System.Windows.Controls.Button)(target));
                return;

            case 18:
                this.LabelSounds = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.AppWindow = ((BergsonMatchesUpgraded.MainWindow)(target));

            #line 5 "..\..\..\MainWindow.xaml"
                this.AppWindow.KeyDown += new System.Windows.Input.KeyEventHandler(this.AppWindow_KeyDown);

            #line default
            #line hidden
                return;

            case 2:
                this.ContextMenuGame = ((System.Windows.Controls.ContextMenu)(target));
                return;

            case 3:

            #line 14 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SettingsMenuItem_Click);

            #line default
            #line hidden
                return;

            case 4:

            #line 16 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.RulesMenuItem_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.AppGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 6:
                this.MenuGame = ((System.Windows.Controls.Menu)(target));
                return;

            case 7:

            #line 22 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.NewGameMenuItem_Click);

            #line default
            #line hidden
                return;

            case 8:

            #line 23 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.LoadGameMenuItem_Click);

            #line default
            #line hidden
                return;

            case 9:

            #line 24 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveGameMenuItem_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.SettingsMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 26 "..\..\..\MainWindow.xaml"
                this.SettingsMenuItem.Click += new System.Windows.RoutedEventHandler(this.SettingsMenuItem_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.ExitMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 28 "..\..\..\MainWindow.xaml"
                this.ExitMenuItem.Click += new System.Windows.RoutedEventHandler(this.ExitMenuItem_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.RulesMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 31 "..\..\..\MainWindow.xaml"
                this.RulesMenuItem.Click += new System.Windows.RoutedEventHandler(this.RulesMenuItem_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.AboutMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 33 "..\..\..\MainWindow.xaml"
                this.AboutMenuItem.Click += new System.Windows.RoutedEventHandler(this.AboutMenuItem_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.IntegerUpDownInput = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target));
                return;

            case 15:
                this.ButtonConfirm = ((System.Windows.Controls.Button)(target));

            #line 37 "..\..\..\MainWindow.xaml"
                this.ButtonConfirm.Click += new System.Windows.RoutedEventHandler(this.ButtonConfirm_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.Label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 17:
                this.Label2 = ((System.Windows.Controls.Label)(target));
                return;

            case 18:
                this.LabelAmountMatches = ((System.Windows.Controls.Label)(target));
                return;

            case 19:
                this.Label3 = ((System.Windows.Controls.Label)(target));
                return;

            case 20:
                this.LabelDifficulty = ((System.Windows.Controls.Label)(target));
                return;

            case 21:
                this.Label4 = ((System.Windows.Controls.Label)(target));
                return;

            case 22:
                this.LabelFoe = ((System.Windows.Controls.Label)(target));
                return;

            case 23:
                this.ButtonSounds = ((System.Windows.Controls.Button)(target));

            #line 45 "..\..\..\MainWindow.xaml"
                this.ButtonSounds.Click += new System.Windows.RoutedEventHandler(this.ButtonSounds_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.ImageSound = ((System.Windows.Controls.Image)(target));
                return;

            case 25:
                this.LabelSounds = ((System.Windows.Controls.Label)(target));
                return;

            case 26:
                this.WrapPanelMatches = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 27:
                this.StatusBarGame = ((System.Windows.Controls.Primitives.StatusBar)(target));
                return;

            case 28:
                this.StatusGameTextBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 29:
                this.mediaElementSounds = ((System.Windows.Controls.MediaElement)(target));
                return;
            }
            this._contentLoaded = true;
        }