示例#1
0
        //////////////////////////////////////////////////////////////////////////
        public bool CustomBuild(string ActionName, ToolStripItemCollection Items, bool AsMenu)
        {
            // get object of given type
            IActionProvider Obj;
            Action          Act;

            ActionManager.GetActionByName(ActionName, ActiveObjects, out Obj, out Act);
            if (Obj == null || Act == null)
            {
                return(false);
            }

            return(Act.CustomBuild(Obj, Items, AsMenu));
        }