示例#1
0
        public MainWindow()
        {
            InitializeComponent();
            SetLanguageDictionary();

            this.game = new SaperGame(mineField);
            this.game.setOptions(rows, cols, mines);
            this.game.SetReferences(labelMines, labelTimer, face);
            this.game.startGame();
        }
示例#2
0
 static void Main()
 {
     using (var game = new SaperGame())
         game.Run();
 }