public bool ToggleSelectedValue(int value) { if (Board != null && _view.Selector.CurrentFieldView != null) { Moves.PlayValue(_view.Selector.CurrentFieldView.Row, _view.Selector.CurrentFieldView.Col, value); _view.Refresh(); PlayActionHandler?.Invoke(_view.Selector.CurrentFieldView.Row, _view.Selector.CurrentFieldView.Col, TekMove.tmValue, value); return(true); } else { return(false); } }
public void SetValue(TekMoves moves, TekField field, int value) { bool result = field.Value == 0; moves.PlayValue(field, value); }