//ncrunch: no coverage start public InputEditorViewModel(Service service) { CommandList = new ObservableCollection <string>(); inputNewTriggerEditor = new InputNewTriggerEditor(); availableCommands = new CommandList(); InputTypeEditor = new InputTypeEditor(this); inputKeyAndButtonEditor = new InputKeyAndButtonEditor(this); inputStateEditor = new InputStateEditor(this); TriggerList = new ObservableCollection <TriggerLayoutView>(); inputSaverAndLoader = new InputSaverAndLoader(); this.service = service; CheckForLoad(); SetICommands(); }
//ncrunch: no coverage start public InputEditorViewModel(Service service) { CommandList = new ObservableCollection<string>(); inputNewTriggerEditor = new InputNewTriggerEditor(); availableCommands = new CommandList(); InputTypeEditor = new InputTypeEditor(this); inputKeyAndButtonEditor = new InputKeyAndButtonEditor(this); inputStateEditor = new InputStateEditor(this); TriggerList = new ObservableCollection<TriggerLayoutView>(); inputSaverAndLoader = new InputSaverAndLoader(); this.service = service; CheckForLoad(); SetICommands(); }
public void ChangeType(TriggerLayoutData e) { if (e.NumberOfAddingItems == 0 || e.NumberOfRemovingItems == 0) { return; //ncrunch: no coverage } if (e.RemovingItem != "Touchpad" && e.RemovingItem != "MouseDragAndDrop" && e.RemovingItem != "MouseHold" && e.RemovingItem != "MouseHover" && e.RemovingItem != "MouseMovement") { InputTypeEditor.ChangeExistingTypeInList(e.AddingItem, e.KeyBox.SelectedItem.ToString()); } else { InputTypeEditor.ChangeExistingTypeInList(e.AddingItem); //ncrunch: no coverage } }