protected virtual void OnUserInteraction(UserInteractionArgs.KolorGracza typ, ComboBox box) { if (box.SelectedItem == null) { return; } var args = new UserInteractionArgs(typ, box.SelectedText); UserInteraction?.Invoke(this, args); }
protected virtual void OnUserInteraction(UserInteractionArgs.Kind kind, Button btn) { if (btn == null) { return; } var args = new UserInteractionArgs(kind, btn.Text); UserInteraction?.Invoke(this, args); btnEq.Focus(); }