Пример #1
0
        public static Element GetAction(string key)
        {
            if (factories == null)
            {
                LoadFactories();
            }
            iActionFactory actionFactory = (iActionFactory)factories[key];

            if (actionFactory == null)
            {
                throw new ActionException("Key not defined");
            }
            return(actionFactory.GetAction(key));
        }
Пример #2
0
        public static ActionPanel GetActionPanel(Element element)
        {
            if (factories == null)
            {
                LoadFactories();
            }
            iActionFactory actionFactory = (iActionFactory)factories[element.Key];

            if (actionFactory == null)
            {
                throw new ActionException("Key not defined");
            }
            return(actionFactory.GetActionPanel(element));
        }
Пример #3
0
        public static GraphElement GetGraphAction(string key, XmlElement elementData, SortedList <string, Variable> variables)
        {
            if (factories == null)
            {
                LoadFactories();
            }
            iActionFactory actionFactory = (iActionFactory)factories[key];

            if (actionFactory == null)
            {
                throw new ActionException("Key not defined");
            }
            return(actionFactory.GetGraphAction(key, elementData, variables));
        }