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); } }
private void btnPlayAction_Click(object sender, RoutedEventArgs e) { PlayAction?.Invoke(this, new EventArgs()); }
private void btnPlay_Click(object sender, EventArgs e) { PlayAction?.Invoke(); }