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(); }
public Solver(MineField mineField) { _mineField = mineField; }