Exemple #1
0
 public Form1()
 {
     //DialogResult result = MessageBox.Show("Play a game of Minesweeper?", "Welcome!",
     //    MessageBoxButtons.YesNo, MessageBoxIcon.None);
     //if (result == DialogResult.Yes)
     //{
     session = new PlayerSession_Model();
     InitializeComponent();
     MessageBox.Show("Left-click on all tiles without mines to win!", "Instructions");
     //}
     //else if (result == DialogResult.No)
     //{
     //    MessageBox.Show("Goodbye!");
     //    Application.Exit();
     //}
 }
 public Minesweeper_Game(PlayerSession_Model inParentSession)
 {
     parentSession = inParentSession;
     game          = new Minefield_Model(10, 10, 10);//test+_+
     gameRecord    = new GameRecord_Model(this);
 }