public BoardForm(MinesweeperGame game) { InitializeComponent(); this.Game = game; this.Game.ActivateCells(); this.stopWatch = new System.Diagnostics.Stopwatch(); this.stopWatch.Start(); }
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(); }