コード例 #1
0
        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);
        }
コード例 #2
0
        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();
        }