public void CheckForLoad() { if (File.Exists("Content/" + service.ProjectName + "/InputCommands.xml")) { InputSaverAndLoader.LoadInput(this); //ncrunch: no coverage } }
//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(); }