コード例 #1
0
 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);
     }
 }
コード例 #2
0
 private void btnPlayAction_Click(object sender, RoutedEventArgs e)
 {
     PlayAction?.Invoke(this, new EventArgs());
 }
コード例 #3
0
 private void btnPlay_Click(object sender, EventArgs e)
 {
     PlayAction?.Invoke();
 }