public void ValidateScenes() { var selectedScenes = _listView.GetSelectedNames(); if (!selectedScenes.IsEmpty()) { StartScenes(selectedScenes, false, true); } }
IEnumerable <ContextMenuItem> GetContextMenuItems() { yield return(new ContextMenuItem( true, "Run Selected Scenes", false, () => _startScenesCommand.Execute())); yield return(new ContextMenuItem( true, "Validate Selected Scenes", false, () => _validateScenesCommand.Execute())); yield return(new ContextMenuItem( _view.GetSelectedNames().Count == 1, "Open Scene", false, () => _sceneOpener.Execute(_view.GetSelectedNames().First()))); }