public InitGameBoard(GameUserControl gameUserControl, EnumBoard[,] enumBoard) { this.gameUserControl = gameUserControl; this.enumBoard = enumBoard; GetGameBoard(); }
public void StartNewGame(GameUserControl gameUserControl, string content) { this.gameUserControl = gameUserControl; ai = content.Trim().ToLower() == "ai"; SetGameVariable(); ResetGameBoard(); InitGameBoard(); SetLabelsColor(); }
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"; }