public void SetKeyBind() { LayerKeybindModel.Unregister(); LayerKeybindModel.HotKey = HotKey; LayerKeybindModel.MouseButtons = null; LayerKeybindModel.ToggleType = ToggleType; NotifyOfPropertyChange(() => HotkeyVisible); NotifyOfPropertyChange(() => MouseButtonsVisible); }
public LayerKeybindViewModel(LayerEditorViewModel editorViewModel, LayerKeybindModel layerKeybindModel) { _editorViewModel = editorViewModel; LayerKeybindModel = layerKeybindModel; CanToggleType = !editorViewModel.ProposedLayer.IsEvent; PropertyChanged += MapViewToModel; editorViewModel.PropertyChanged += EditorViewModelOnPropertyChanged; MapModelToView(); }
public void AddKeybind() { var keybind = new LayerKeybindModel(); LayerKeybindVms.Add(new LayerKeybindViewModel(this, keybind)); }