protected HotkeySettableViewModel(string name)
        {
            _name     = name;
            _category = new HotkeyEntry(_name, true);

            HotkeyManager hotkey = HotkeyManager.GetInstance();

            hotkey.AddCategory(_category);

            Items.CollectionChanged += OnCollectionChanged;

            _category.Children = new ObservableCollectionEx <HotkeySettable>();
        }
Exemple #2
0
        protected HotkeyEntryViewModel(string name)
        {
            _category = new HotkeyCommand {
                Name = name, IsCategory = true
            };

            HotkeyManager hotkey = HotkeyManager.GetInstance();

            hotkey.AddCategory(_category);

            Items.CollectionChanged += OnCollectionChanged;

            _category.Children = new ObservableCollectionEx <HotkeyEntry>();
        }