protected override async void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     var setup = e.Parameter as GameSetup ?? new GameSetup(Dificulty.Easy);
     _dificulty = setup.GameDificulty;
     _minefield = new MineField(setup.Rows, setup.Cols, setup.MineCount);
     _flagMode = Settings.FlagMode;
     InitGrid();
     await AdjustZoom();
 }
Exemplo n.º 2
0
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            var setup = e.Parameter as GameSetup ?? new GameSetup(Dificulty.Easy);

            _dificulty = setup.GameDificulty;
            _minefield = new MineField(setup.Rows, setup.Cols, setup.MineCount);
            _flagMode  = Settings.FlagMode;
            InitGrid();
            await AdjustZoom();
        }
Exemplo n.º 3
0
 public Solver(MineField mineField)
 {
     _mineField = mineField;
 }
Exemplo n.º 4
0
 public Solver(MineField mineField)
 {
     _mineField = mineField;
 }