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

            _ActiveKeybind = this;

            buttonToggleAssign.Content = "Stop";
        }
        public void Start()
        {
            if (_ActiveKeybind != null)
            {
                _ActiveKeybind.Stop();
            }

            isRecording    = true;
            _ActiveKeybind = this;

            buttonToggleAssign.Content = "Stop";
        }
Example #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);
        }