//ncrunch: no coverage start
		public void CreateNewTriggerBox(CommandList commandList, string selectedCommandInList,
			TriggerLayoutView newTrigger)
		{
			trigger = newTrigger;
			availableCommands = commandList;
			selectedCommand = selectedCommandInList;
			FillBoxWithInputKeysWithKeyEnum();
			FillBoxWithInputTypeEnum();
			FillBoxWithInputStateEnum();
			SetSelectedItem();
		}
		//ncrunch: no coverage start
		public void SaveInput(CommandList commandList, Service service)
		{
			var root = CreateMainRoot("InputCommands");
			foreach (var command in commandList.GetCommands())
				SetCommand(root, command, commandList.GetAllTriggers(command));
			var bytes = new XmlFile(root).ToMemoryStream().ToArray();
			var fileNameAndBytes = new Dictionary<string, byte[]>();
			fileNameAndBytes.Add("InputCommands.xml", bytes);
			var metaDataCreator = new ContentMetaDataCreator();
			var contentMetaData = metaDataCreator.CreateMetaDataFromInputData(bytes);
			service.UploadContent(contentMetaData, fileNameAndBytes);
		}
		//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();
		}