コード例 #1
0
 public void Resume()
 {
     if ((MsGame = GameToFile.Load()) != null)
     {
         GameToFile.RemoveFile();
         MX_Height = MsGame.UpperMatrix.Count;
         MX_Width  = MsGame.UpperMatrix[0].Count;
         NUM_BOMBS = MsGame.LowerMatrix.getNumBombs();
         FillWithBoxes();
         InitWindow();
     }
 }
コード例 #2
0
 public MainWindow()
 {
     InitializeComponent();
     GameIcons = new IconCollection();
     if (GameToFile.isFileExist())
     {
         Resume();
     }
     else
     {
         StartNewGame();
     }
 }
コード例 #3
0
 private void saveGameButton_Click(object sender, RoutedEventArgs e)
 {
     GameToFile.Save(this.MsGame);
 }