Example #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window1 = ((GUI_Project.MainWindow)(target));
                return;

            case 2:
                this.menu = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 3:
                this.btnNewGameMenu = ((System.Windows.Controls.MenuItem)(target));

            #line 21 "..\..\MainWindow.xaml"
                this.btnNewGameMenu.Click += new System.Windows.RoutedEventHandler(this.newGame_click);

            #line default
            #line hidden
                return;

            case 4:

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

            #line default
            #line hidden
                return;

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

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

            #line 60 "..\..\MainWindow.xaml"
                this.btnDif1.Click += new System.Windows.RoutedEventHandler(this.btnDif1_Click);

            #line default
            #line hidden
                return;

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

            #line 61 "..\..\MainWindow.xaml"
                this.btnDif2.Click += new System.Windows.RoutedEventHandler(this.btnDif2_Click);

            #line default
            #line hidden
                return;

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

            #line 62 "..\..\MainWindow.xaml"
                this.btnDif3.Click += new System.Windows.RoutedEventHandler(this.btnDif3_Click);

            #line default
            #line hidden
                return;

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

            #line 64 "..\..\MainWindow.xaml"
                this.btnCol1.Click += new System.Windows.RoutedEventHandler(this.btnCol1_Click);

            #line default
            #line hidden
                return;

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

            #line 65 "..\..\MainWindow.xaml"
                this.btnCol2.Click += new System.Windows.RoutedEventHandler(this.btnCol2_Click);

            #line default
            #line hidden
                return;

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

            #line 66 "..\..\MainWindow.xaml"
                this.btnCol3.Click += new System.Windows.RoutedEventHandler(this.btnCol3_Click);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

            #line 69 "..\..\MainWindow.xaml"
                this.btnFullscreenOn.Click += new System.Windows.RoutedEventHandler(this.btnFullscreenOn_Click);

            #line default
            #line hidden
                return;

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

            #line 72 "..\..\MainWindow.xaml"
                this.btnSettingsBack.Click += new System.Windows.RoutedEventHandler(this.btnSettingsBack_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.highScores = ((System.Windows.Controls.Grid)(target));
                return;

            case 16:
                this.btnMode1 = ((System.Windows.Controls.Button)(target));

            #line 94 "..\..\MainWindow.xaml"
                this.btnMode1.Click += new System.Windows.RoutedEventHandler(this.btnMode1_Click);

            #line default
            #line hidden
                return;

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

            #line 95 "..\..\MainWindow.xaml"
                this.btnMode2.Click += new System.Windows.RoutedEventHandler(this.btnMode2_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.highScoreList = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 19:
                this.btnHighScoreBack = ((System.Windows.Controls.Button)(target));

            #line 110 "..\..\MainWindow.xaml"
                this.btnHighScoreBack.Click += new System.Windows.RoutedEventHandler(this.btnHighScoreBack_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.startScreen = ((System.Windows.Controls.Grid)(target));
                return;

            case 21:
                this.btnResume = ((System.Windows.Controls.Button)(target));

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

            #line default
            #line hidden
                return;

            case 22:
                this.btnStartGame = ((System.Windows.Controls.Button)(target));

            #line 126 "..\..\MainWindow.xaml"
                this.btnStartGame.Click += new System.Windows.RoutedEventHandler(this.btnStartGame_Click);

            #line default
            #line hidden
                return;

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

            #line 127 "..\..\MainWindow.xaml"
                this.btnHighScore.Click += new System.Windows.RoutedEventHandler(this.btnHighScore_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.btnRules = ((System.Windows.Controls.Button)(target));

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

            #line default
            #line hidden
                return;

            case 25:
                this.btnSettings = ((System.Windows.Controls.Button)(target));

            #line 129 "..\..\MainWindow.xaml"
                this.btnSettings.Click += new System.Windows.RoutedEventHandler(this.btnSettings_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.btnExit = ((System.Windows.Controls.Button)(target));

            #line 130 "..\..\MainWindow.xaml"
                this.btnExit.Click += new System.Windows.RoutedEventHandler(this.Exit_click);

            #line default
            #line hidden
                return;

            case 27:
                this.BlockClicks = ((System.Windows.Controls.Grid)(target));
                return;

            case 28:
                this.canvas2 = ((System.Windows.Controls.Canvas)(target));
                return;

            case 29:
                this.lbl = ((System.Windows.Controls.Label)(target));
                return;

            case 30:
                this.extraWindows = ((System.Windows.Controls.Grid)(target));
                return;

            case 31:
                this.ContentArea = ((System.Windows.Controls.ContentControl)(target));
                return;

            case 32:
                this.playScreen = ((System.Windows.Controls.Grid)(target));
                return;

            case 33:
                this.Points = ((System.Windows.Controls.Label)(target));
                return;

            case 34:
                this.btnPause = ((System.Windows.Controls.Button)(target));

            #line 171 "..\..\MainWindow.xaml"
                this.btnPause.Click += new System.Windows.RoutedEventHandler(this.btnPlay_Click);

            #line default
            #line hidden
                return;

            case 35:
                this.surivalGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 36:
                this.timeClock = ((System.Windows.Controls.Label)(target));
                return;

            case 37:
                this.classicGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 38:
                this.trys = ((System.Windows.Controls.Label)(target));
                return;

            case 39:
                this.level = ((System.Windows.Controls.Label)(target));
                return;

            case 40:
                this.canvas1 = ((System.Windows.Controls.Canvas)(target));
                return;

            case 41:
                this.screenRules = ((System.Windows.Controls.Grid)(target));
                return;

            case 42:
                this.btnRulesBack = ((System.Windows.Controls.Button)(target));

            #line 250 "..\..\MainWindow.xaml"
                this.btnRulesBack.Click += new System.Windows.RoutedEventHandler(this.btnRulseBack_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window1 = ((GUI_Project.MainWindow)(target));
                return;

            case 2:
                this.menu = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 3:
                this.btnNewGameMenu = ((System.Windows.Controls.MenuItem)(target));

            #line 29 "..\..\MainWindow.xaml"
                this.btnNewGameMenu.Click += new System.Windows.RoutedEventHandler(this.newGame_click);

            #line default
            #line hidden
                return;

            case 4:

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

            #line default
            #line hidden
                return;

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

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

            #line 64 "..\..\MainWindow.xaml"
                this.pauseFullscreen.Click += new System.Windows.RoutedEventHandler(this.btnPlay_Click);

            #line default
            #line hidden
                return;

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

            #line 89 "..\..\MainWindow.xaml"
                this.restartFullscreen.Click += new System.Windows.RoutedEventHandler(this.btnNewGameGO_Click);

            #line default
            #line hidden
                return;

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

            case 9:
                this.timeFS = ((System.Windows.Controls.Label)(target));
                return;

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

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

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

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

            case 14:
                this.fullscreenRight = ((System.Windows.Controls.Grid)(target));
                return;

            case 15:
                this.sIngame = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 17:
                this.highScoreListFullscreen = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 18:
                this.settings = ((System.Windows.Controls.Grid)(target));
                return;

            case 19:
                this.btnDif1 = ((System.Windows.Controls.Button)(target));

            #line 198 "..\..\MainWindow.xaml"
                this.btnDif1.Click += new System.Windows.RoutedEventHandler(this.btnDif1_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.btnDif2 = ((System.Windows.Controls.Button)(target));

            #line 199 "..\..\MainWindow.xaml"
                this.btnDif2.Click += new System.Windows.RoutedEventHandler(this.btnDif2_Click);

            #line default
            #line hidden
                return;

            case 21:
                this.btnDif3 = ((System.Windows.Controls.Button)(target));

            #line 200 "..\..\MainWindow.xaml"
                this.btnDif3.Click += new System.Windows.RoutedEventHandler(this.btnDif3_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.btnCol1 = ((System.Windows.Controls.Button)(target));

            #line 202 "..\..\MainWindow.xaml"
                this.btnCol1.Click += new System.Windows.RoutedEventHandler(this.btnCol1_Click);

            #line default
            #line hidden
                return;

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

            #line 203 "..\..\MainWindow.xaml"
                this.btnCol2.Click += new System.Windows.RoutedEventHandler(this.btnCol2_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.btnCol3 = ((System.Windows.Controls.Button)(target));

            #line 204 "..\..\MainWindow.xaml"
                this.btnCol3.Click += new System.Windows.RoutedEventHandler(this.btnCol3_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.btnSoundOff = ((System.Windows.Controls.Button)(target));

            #line 209 "..\..\MainWindow.xaml"
                this.btnSoundOff.Click += new System.Windows.RoutedEventHandler(this.btnSoundOff_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.btnSoundOn = ((System.Windows.Controls.Button)(target));

            #line 210 "..\..\MainWindow.xaml"
                this.btnSoundOn.Click += new System.Windows.RoutedEventHandler(this.btnSoundOn_Click);

            #line default
            #line hidden
                return;

            case 27:
                this.btnFullscreenOff = ((System.Windows.Controls.Button)(target));

            #line 212 "..\..\MainWindow.xaml"
                this.btnFullscreenOff.Click += new System.Windows.RoutedEventHandler(this.btnFullscreenOff_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.btnFullscreenOn = ((System.Windows.Controls.Button)(target));

            #line 213 "..\..\MainWindow.xaml"
                this.btnFullscreenOn.Click += new System.Windows.RoutedEventHandler(this.btnFullscreenOn_Click);

            #line default
            #line hidden
                return;

            case 29:
                this.btnSettingsBack = ((System.Windows.Controls.Button)(target));

            #line 216 "..\..\MainWindow.xaml"
                this.btnSettingsBack.Click += new System.Windows.RoutedEventHandler(this.btnSettingsBack_Click);

            #line default
            #line hidden
                return;

            case 30:
                this.highScores = ((System.Windows.Controls.Grid)(target));
                return;

            case 31:
                this.btnMode1 = ((System.Windows.Controls.Button)(target));

            #line 238 "..\..\MainWindow.xaml"
                this.btnMode1.Click += new System.Windows.RoutedEventHandler(this.btnMode1_Click);

            #line default
            #line hidden
                return;

            case 32:
                this.btnMode2 = ((System.Windows.Controls.Button)(target));

            #line 239 "..\..\MainWindow.xaml"
                this.btnMode2.Click += new System.Windows.RoutedEventHandler(this.btnMode2_Click);

            #line default
            #line hidden
                return;

            case 33:
                this.highScoreList = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 34:
                this.btnHighScoreBack = ((System.Windows.Controls.Button)(target));

            #line 254 "..\..\MainWindow.xaml"
                this.btnHighScoreBack.Click += new System.Windows.RoutedEventHandler(this.btnHighScoreBack_Click);

            #line default
            #line hidden
                return;

            case 35:
                this.startScreen = ((System.Windows.Controls.Grid)(target));
                return;

            case 36:
                this.btnResume = ((System.Windows.Controls.Button)(target));

            #line 269 "..\..\MainWindow.xaml"
                this.btnResume.Click += new System.Windows.RoutedEventHandler(this.btnResume_Click);

            #line default
            #line hidden
                return;

            case 37:
                this.btnStartGame = ((System.Windows.Controls.Button)(target));

            #line 270 "..\..\MainWindow.xaml"
                this.btnStartGame.Click += new System.Windows.RoutedEventHandler(this.btnStartGame_Click);

            #line default
            #line hidden
                return;

            case 38:
                this.btnHighScore = ((System.Windows.Controls.Button)(target));

            #line 271 "..\..\MainWindow.xaml"
                this.btnHighScore.Click += new System.Windows.RoutedEventHandler(this.btnHighScore_Click);

            #line default
            #line hidden
                return;

            case 39:
                this.btnRules = ((System.Windows.Controls.Button)(target));

            #line 272 "..\..\MainWindow.xaml"
                this.btnRules.Click += new System.Windows.RoutedEventHandler(this.btnRules_Click);

            #line default
            #line hidden
                return;

            case 40:
                this.btnSettings = ((System.Windows.Controls.Button)(target));

            #line 273 "..\..\MainWindow.xaml"
                this.btnSettings.Click += new System.Windows.RoutedEventHandler(this.btnSettings_Click);

            #line default
            #line hidden
                return;

            case 41:
                this.btnExit = ((System.Windows.Controls.Button)(target));

            #line 274 "..\..\MainWindow.xaml"
                this.btnExit.Click += new System.Windows.RoutedEventHandler(this.Exit_click);

            #line default
            #line hidden
                return;

            case 42:
                this.BlockClicks = ((System.Windows.Controls.Grid)(target));
                return;

            case 43:
                this.canvas2 = ((System.Windows.Controls.Canvas)(target));
                return;

            case 44:
                this.lbl = ((System.Windows.Controls.Label)(target));
                return;

            case 45:
                this.extraWindows = ((System.Windows.Controls.Grid)(target));
                return;

            case 46:
                this.ContentArea = ((System.Windows.Controls.ContentControl)(target));
                return;

            case 47:
                this.playScreen = ((System.Windows.Controls.Grid)(target));
                return;

            case 48:
                this.topPanel = ((System.Windows.Controls.Grid)(target));
                return;

            case 49:
                this.lblPoints = ((System.Windows.Controls.Label)(target));
                return;

            case 50:
                this.Points = ((System.Windows.Controls.Label)(target));
                return;

            case 51:
                this.Pause = ((System.Windows.Controls.Button)(target));

            #line 324 "..\..\MainWindow.xaml"
                this.Pause.Click += new System.Windows.RoutedEventHandler(this.btnPlay_Click);

            #line default
            #line hidden
                return;

            case 52:
                this.surivalGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 53:
                this.lblClock = ((System.Windows.Controls.Label)(target));
                return;

            case 54:
                this.timeClock = ((System.Windows.Controls.Label)(target));
                return;

            case 55:
                this.classicGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 56:
                this.lblTries = ((System.Windows.Controls.Label)(target));
                return;

            case 57:
                this.trys = ((System.Windows.Controls.Label)(target));
                return;

            case 58:
                this.lblLevel = ((System.Windows.Controls.Label)(target));
                return;

            case 59:
                this.level = ((System.Windows.Controls.Label)(target));
                return;

            case 60:
                this.topPanelFree = ((System.Windows.Controls.Grid)(target));
                return;

            case 61:
                this.pauseFreescreen = ((System.Windows.Controls.Button)(target));

            #line 394 "..\..\MainWindow.xaml"
                this.pauseFreescreen.Click += new System.Windows.RoutedEventHandler(this.btnPlay_Click);

            #line default
            #line hidden
                return;

            case 62:
                this.restartFreescreen = ((System.Windows.Controls.Button)(target));

            #line 419 "..\..\MainWindow.xaml"
                this.restartFreescreen.Click += new System.Windows.RoutedEventHandler(this.btnNewGameGO_Click);

            #line default
            #line hidden
                return;

            case 63:
                this.btnFreePanel1 = ((System.Windows.Controls.Button)(target));

            #line 457 "..\..\MainWindow.xaml"
                this.btnFreePanel1.Click += new System.Windows.RoutedEventHandler(this.btnDif1_Click);

            #line default
            #line hidden
                return;

            case 64:
                this.btnFreePanel2 = ((System.Windows.Controls.Button)(target));

            #line 458 "..\..\MainWindow.xaml"
                this.btnFreePanel2.Click += new System.Windows.RoutedEventHandler(this.btnDif2_Click);

            #line default
            #line hidden
                return;

            case 65:
                this.btnFreePanel3 = ((System.Windows.Controls.Button)(target));

            #line 459 "..\..\MainWindow.xaml"
                this.btnFreePanel3.Click += new System.Windows.RoutedEventHandler(this.btnDif3_Click);

            #line default
            #line hidden
                return;

            case 66:
                this.btnFreeColor1 = ((System.Windows.Controls.Button)(target));

            #line 474 "..\..\MainWindow.xaml"
                this.btnFreeColor1.Click += new System.Windows.RoutedEventHandler(this.btnCol1_Click);

            #line default
            #line hidden
                return;

            case 67:
                this.btnFreeColor2 = ((System.Windows.Controls.Button)(target));

            #line 475 "..\..\MainWindow.xaml"
                this.btnFreeColor2.Click += new System.Windows.RoutedEventHandler(this.btnCol2_Click);

            #line default
            #line hidden
                return;

            case 68:
                this.btnFreeColor3 = ((System.Windows.Controls.Button)(target));

            #line 476 "..\..\MainWindow.xaml"
                this.btnFreeColor3.Click += new System.Windows.RoutedEventHandler(this.btnCol3_Click);

            #line default
            #line hidden
                return;

            case 69:
                this.topPanelFullScreen = ((System.Windows.Controls.Grid)(target));
                return;

            case 70:
                this.canvas1 = ((System.Windows.Controls.Canvas)(target));
                return;

            case 71:
                this.screenRules = ((System.Windows.Controls.Grid)(target));
                return;

            case 72:
                this.btnMode1Rules = ((System.Windows.Controls.Button)(target));

            #line 527 "..\..\MainWindow.xaml"
                this.btnMode1Rules.Click += new System.Windows.RoutedEventHandler(this.btnMode1Rules_Click);

            #line default
            #line hidden
                return;

            case 73:
                this.btnMode2Rules = ((System.Windows.Controls.Button)(target));

            #line 528 "..\..\MainWindow.xaml"
                this.btnMode2Rules.Click += new System.Windows.RoutedEventHandler(this.btnMode2Rules_Click);

            #line default
            #line hidden
                return;

            case 74:
                this.rulesClassic = ((System.Windows.Controls.Grid)(target));
                return;

            case 75:
                this.lblStep = ((System.Windows.Controls.Label)(target));
                return;

            case 76:
                this.btnRulesLeft = ((System.Windows.Controls.Button)(target));

            #line 545 "..\..\MainWindow.xaml"
                this.btnRulesLeft.Click += new System.Windows.RoutedEventHandler(this.btnLeftRules_Click);

            #line default
            #line hidden
                return;

            case 77:
                this.btnRulesRight = ((System.Windows.Controls.Button)(target));

            #line 570 "..\..\MainWindow.xaml"
                this.btnRulesRight.Click += new System.Windows.RoutedEventHandler(this.btnRulesRight_click);

            #line default
            #line hidden
                return;

            case 78:
                this.rulesPic = ((System.Windows.Controls.Grid)(target));
                return;

            case 79:
                this.picture = ((System.Windows.Controls.Image)(target));
                return;

            case 80:
                this.btnRulesBack = ((System.Windows.Controls.Button)(target));

            #line 603 "..\..\MainWindow.xaml"
                this.btnRulesBack.Click += new System.Windows.RoutedEventHandler(this.btnRulseBack_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }