Beispiel #1
0
 private void СохранитьИгруToolStripMenuItem_Click(object sender, EventArgs e)
 {
     game.Stop();
     try
     {
         using (FileStream stream = File.Open("LastGame.game", FileMode.OpenOrCreate))
             game.SaveGame(stream);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
     game.Start();
 }