Пример #1
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();
 }
Пример #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();
		}