public void NewGame() { Game = new Wrapper.Sudoku(); Game.PropertyChanged += (sender, e) => { RaisePropertyChanged(nameof(Game)); }; RaisePropertyChanged(nameof(Game)); }
private void UpdateField(Wrapper.Sudoku game) { _field.ForEach(f => { var split = f.Key.Split(':'); var x = Convert.ToInt32(split[0]); var y = Convert.ToInt32(split[1]); int?value = game.Get(x, y); if (value == 0) { value = null; } f.Value.Text = value.ToString(); }); }