Esempio n. 1
0
        private static IEnumerable <CustomAction> GetCustomActions()
        {
            if (UI.UIController.Current != null)
            {
                return(UI.UIController.Current.Actions.OfType <CustomAction>());
            }

            if (commandLineCustomActions == null)
            {
                commandLineCustomActions = new List <IBaseAction>();
                ScriptEngine.AddCustomActions(commandLineCustomActions);
            }
            return(commandLineCustomActions.OfType <CustomAction>());
        }