Пример #1
0
 public void ChangeKey(TriggerLayoutData e)
 {
     if (e.NumberOfAddingItems == 0 || e.NumberOfRemovingItems == 0)
     {
         return;                 //ncrunch: no coverage
     }
     InputKeyAndButtonEditor.ChangeExistingKeyInList(e.AddingItem, e.RemovingItem);
 }
Пример #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();
 }
Пример #3
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();
		}