예제 #1
0
 /// <summary>
 /// Constructor that initializes the user interface and the model.
 /// </summary>
 /// <param name="tetris"></param>
 /// <param name="UI"></param>
 public Controller()
 {
     AllTimeHighScore = FileManager.LoadHighScore();
 }
예제 #2
0
 /// <summary>
 /// Saving the current game to file.
 /// </summary>
 /// <param name="filePathAndName"></param>
 public void SaveCurrentGame(string filePathAndName)
 {
     FileManager.SaveGameToFile(filePathAndName, Model);
 }