public SingleGame GetNextSingleGame() { Song song = GetNextSong(); if (song != null) { _currentGame = new SingleGame(song); } return(_currentGame); }
public SingleGame GetPrevSingleGame() { Song song = GetPrevSong(); if (song != null) { _currentGame = new SingleGame(song); System.Diagnostics.Debug.WriteLine(string.Format("Game with Song: {0}", song)); } return(_currentGame); }
public Game() { // Initialize the random number generator _randomNumberGenerator = new Random(); // Initialize the song file _theSongFile = SongFile.GetInstance(); // Shuffle the songs ShuffleSongs(); _currentGame = null; _songIndex = -1; }