예제 #1
0
        public Mode1Methodes(MainWindow win, Sounds player)
        {
            window  = win;
            _player = player;
            func    = new deladeFunktioner(window);
            window.classicGrid.Visibility = Visibility.Visible;
            window.surivalGrid.Visibility = Visibility.Hidden;
            tries = 5;
            window.tries.Content  = tries;
            window.timeFS.Content = tries;
            window.level.Content  = 1;

            window.lblHighScoren.Content = "Classic";
            func.GetHighScore();
            window.lblTimeFullscreen.Content  = "Lives";
            window.timeFS.Foreground          = Brushes.White;
            window.levelFS.Content            = "1";
            window.lblLevelFullscreen.Content = "Level";
            window.fullscreenLeft.IsEnabled   = true;
            window.fullscreenLeft.Opacity     = 1;
            window.fullscreenRight.Opacity    = 1;

            if (window._inFullscreen)
            {
                func.GetHighScore();
                window.fullscreenRight.Visibility = Visibility.Visible;
                window.fullscreenLeft.Visibility  = Visibility.Visible;
            }
        }
예제 #2
0
        public Mode2Methodes(int nrOfColors, int nrOfBlocks, int nrOfColumns, double rectSize, MainWindow win, Sounds player)
        {
            window  = win;
            _player = player;
            func    = new deladeFunktioner(window);
            window.timeClock.Content          = "";
            window.scoreFS.Content            = window.timeClock.Content;
            window.Points.Content             = "0";
            window.levelFS.Content            = "";
            window.lblLevelFullscreen.Content = "";
            window.lblTimeFullscreen.Content  = "Time";
            window.scoreFS.Content            = window.Points.Content;
            _numberOfColors = nrOfColors;
            _nrOfBlocks     = nrOfBlocks;
            _nrOfColumns    = nrOfColumns;
            _rectSize       = rectSize;
            window.classicGrid.Visibility = Visibility.Hidden;
            window.surivalGrid.Visibility = Visibility.Visible;
            _Timer          = new DispatcherTimer();
            _Timer.Interval = new TimeSpan(0, 0, 1);
            _Timer.Tick    += _Timer_Tick;
            window.fullscreenLeft.IsEnabled = true;
            window.fullscreenLeft.Opacity   = 1;
            window.fullscreenRight.Opacity  = 1;

            window.lblHighScoren.Content = "Survival";
            func.GetHighScore();
            if (window._inFullscreen)
            {
                func.GetHighScore();
                window.fullscreenRight.Visibility = Visibility.Visible;
                window.fullscreenLeft.Visibility  = Visibility.Visible;
            }
        }
예제 #3
0
 public Mode3Methodes(int nrOfColors, int nrOfBlocks, int nrOfColumns, double rectSize, MainWindow win, Sounds player)
 {
     window  = win;
     _player = player;
     func    = new deladeFunktioner(window);
     window.classicGrid.Visibility = Visibility.Hidden;
     window.surivalGrid.Visibility = Visibility.Hidden;
     _numberOfColors = nrOfColors;
     _nrOfBlocks     = nrOfBlocks;
     _nrOfColumns    = nrOfColumns;
     _rectSize       = rectSize;
 }