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