void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.GameWindow = ((Connect4.MainWindow)(target));
                return;

            case 2:
                this.MainGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.MenuGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.Start = ((System.Windows.Controls.Button)(target));

            #line 68 "..\..\MainWindow.xaml"
                this.Start.Click += new System.Windows.RoutedEventHandler(this.Start_OnClick);

            #line default
            #line hidden
                return;

            case 5:
                this.SmallGrid = ((System.Windows.Controls.Button)(target));

            #line 80 "..\..\MainWindow.xaml"
                this.SmallGrid.Click += new System.Windows.RoutedEventHandler(this.SmallGrid_OnClick);

            #line default
            #line hidden
                return;

            case 6:
                this.MediumGrid = ((System.Windows.Controls.Button)(target));

            #line 92 "..\..\MainWindow.xaml"
                this.MediumGrid.Click += new System.Windows.RoutedEventHandler(this.MediumGrid_OnClick);

            #line default
            #line hidden
                return;

            case 7:
                this.LargeGrid = ((System.Windows.Controls.Button)(target));

            #line 104 "..\..\MainWindow.xaml"
                this.LargeGrid.Click += new System.Windows.RoutedEventHandler(this.BigGrid_OnClick);

            #line default
            #line hidden
                return;

            case 8:
                this.OnePlayer = ((System.Windows.Controls.Button)(target));

            #line 116 "..\..\MainWindow.xaml"
                this.OnePlayer.Click += new System.Windows.RoutedEventHandler(this.OnePlayer_OnClick);

            #line default
            #line hidden
                return;

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

            #line 128 "..\..\MainWindow.xaml"
                this.TwoPlayers.Click += new System.Windows.RoutedEventHandler(this.TwoPlayers_OnClick);

            #line default
            #line hidden
                return;

            case 10:
                this.GameGrid = ((System.Windows.Controls.Grid)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.GameWindow = ((Connect4.MainWindow)(target));

            #line 8 "..\..\MainWindow.xaml"
                this.GameWindow.Closing += new System.ComponentModel.CancelEventHandler(this.GameWindow_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.MainGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.MenuGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.GameIconLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.PlayerNameLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.PlayerNameTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.TypeOfGameLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.SizeOfGridLabel = ((System.Windows.Controls.Label)(target));
                return;

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

            #line 121 "..\..\MainWindow.xaml"
                this.SinglePlayer.Click += new System.Windows.RoutedEventHandler(this.SinglePlayer_OnClick);

            #line default
            #line hidden
                return;

            case 10:
                this.MultiPlayer = ((System.Windows.Controls.Button)(target));

            #line 133 "..\..\MainWindow.xaml"
                this.MultiPlayer.Click += new System.Windows.RoutedEventHandler(this.MultiPlayer_OnClick);

            #line default
            #line hidden
                return;

            case 11:
                this.Close = ((System.Windows.Controls.Button)(target));

            #line 145 "..\..\MainWindow.xaml"
                this.Close.Click += new System.Windows.RoutedEventHandler(this.Close_OnClick);

            #line default
            #line hidden
                return;

            case 12:
                this.SmallGrid = ((System.Windows.Controls.Button)(target));

            #line 157 "..\..\MainWindow.xaml"
                this.SmallGrid.Click += new System.Windows.RoutedEventHandler(this.SmallGrid_OnClick);

            #line default
            #line hidden
                return;

            case 13:
                this.MediumGrid = ((System.Windows.Controls.Button)(target));

            #line 169 "..\..\MainWindow.xaml"
                this.MediumGrid.Click += new System.Windows.RoutedEventHandler(this.MediumGrid_OnClick);

            #line default
            #line hidden
                return;

            case 14:
                this.LargeGrid = ((System.Windows.Controls.Button)(target));

            #line 181 "..\..\MainWindow.xaml"
                this.LargeGrid.Click += new System.Windows.RoutedEventHandler(this.BigGrid_OnClick);

            #line default
            #line hidden
                return;

            case 15:
                this.GameGrid = ((System.Windows.Controls.Grid)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.GameWindow = ((Connect4.MainWindow)(target));
                return;

            case 2:
                this.MainGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.MenuGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.PlayerNameTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.SinglePlayer = ((System.Windows.Controls.Button)(target));

            #line 70 "..\..\MainWindow.xaml"
                this.SinglePlayer.Click += new System.Windows.RoutedEventHandler(this.SinglePlayer_OnClick);

            #line default
            #line hidden
                return;

            case 6:
                this.MultiPlayer = ((System.Windows.Controls.Button)(target));

            #line 81 "..\..\MainWindow.xaml"
                this.MultiPlayer.Click += new System.Windows.RoutedEventHandler(this.MultiPlayer_OnClick);

            #line default
            #line hidden
                return;

            case 7:
                this.Close = ((System.Windows.Controls.Button)(target));

            #line 92 "..\..\MainWindow.xaml"
                this.Close.Click += new System.Windows.RoutedEventHandler(this.Close_OnClick);

            #line default
            #line hidden
                return;

            case 8:
                this.SmallGrid = ((System.Windows.Controls.Button)(target));

            #line 103 "..\..\MainWindow.xaml"
                this.SmallGrid.Click += new System.Windows.RoutedEventHandler(this.SmallGrid_OnClick);

            #line default
            #line hidden
                return;

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

            #line 114 "..\..\MainWindow.xaml"
                this.MediumGrid.Click += new System.Windows.RoutedEventHandler(this.MediumGrid_OnClick);

            #line default
            #line hidden
                return;

            case 10:
                this.LargeGrid = ((System.Windows.Controls.Button)(target));

            #line 125 "..\..\MainWindow.xaml"
                this.LargeGrid.Click += new System.Windows.RoutedEventHandler(this.BigGrid_OnClick);

            #line default
            #line hidden
                return;

            case 11:
                this.GameGrid = ((System.Windows.Controls.Grid)(target));
                return;
            }
            this._contentLoaded = true;
        }