Пример #1
0
        public InitGameBoard(GameUserControl gameUserControl, EnumBoard[,] enumBoard)
        {
            this.gameUserControl = gameUserControl;
            this.enumBoard       = enumBoard;

            GetGameBoard();
        }
Пример #2
0
 public void StartNewGame(GameUserControl gameUserControl, string content)
 {
     this.gameUserControl = gameUserControl;
     ai = content.Trim().ToLower() == "ai";
     SetGameVariable();
     ResetGameBoard();
     InitGameBoard();
     SetLabelsColor();
 }
Пример #3
0
        public GameTimer(GameUserControl gameUserControl)
        {
            _timer = new Timer
            {
                Interval = 1000
            };
            _timer.Elapsed += new ElapsedEventHandler(OnTimedEvent);
            _stopWatch      = new Stopwatch();


            _timer.Enabled = false;

            gameUserControl.LabelTimer.Content = "00:00:00";
        }