public BoardForm(MinesweeperGame game)
        {
            InitializeComponent();

            this.Game = game;

            this.Game.ActivateCells();

            this.stopWatch = new System.Diagnostics.Stopwatch();
            this.stopWatch.Start();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();

            // We'll first prompt for the complexity level.
            ComplexityForm complexity = new ComplexityForm();

            complexity.ShowDialog();

            int Size = complexity.GetSetting();

            Console.WriteLine(Size);

            MinesweeperGame Game = new MinesweeperGame(Size);

            BoardForm boardForm = new BoardForm(Game);

            Application.Run(boardForm);

            //Game.playGame();
        }