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();
 }
示例#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();
        }
示例#3
0
 public Solver(MineField mineField)
 {
     _mineField = mineField;
 }
示例#4
0
 public Solver(MineField mineField)
 {
     _mineField = mineField;
 }