Ejemplo n.º 1
0
 public void Stop()
 {
     buttonToggleAssign.Content = "Assign";
     isRecording    = false;
     _ActiveKeybind = null;
     KeybindUpdated?.Invoke(this, ContextKeybind);
 }
Ejemplo n.º 2
0
        public void Start()
        {
            if (_ActiveKeybind != null)
                _ActiveKeybind.Stop();

            _ActiveKeybind = this;

            buttonToggleAssign.Content = "Stop";
        }
Ejemplo n.º 3
0
        public void Start()
        {
            if (_ActiveKeybind != null)
            {
                _ActiveKeybind.Stop();
            }

            isRecording    = true;
            _ActiveKeybind = this;

            buttonToggleAssign.Content = "Stop";
        }
Ejemplo n.º 4
0
        public ShortcutItem(Keybind keybind) : base()
        {
            Keybind = keybind;

            HorizontalAlignment = HorizontalAlignment.Stretch;
            LastChildFill       = true;

            delete = new Button {
                Content = "X"
            };
            delete.Click += RaiseDelete;
            SetDock(delete, Dock.Right);
            Children.Add(delete);

            kb = new Control_Keybind {
                ContextKeybind = keybind
            };
            kb.KeybindUpdated += RaiseChange;
            Children.Add(kb);
        }