Exemplo n.º 1
0
        public void ValidateScenes()
        {
            var selectedScenes = _listView.GetSelectedNames();

            if (!selectedScenes.IsEmpty())
            {
                StartScenes(selectedScenes, false, true);
            }
        }
Exemplo n.º 2
0
        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())));
        }