示例#1
0
        private bool VerifyFuncId(ref Guid funcId)
        {
            if (funcId == null)
            {
                return(false);
            }

            // if the dyf does not exist on the search path...
            if (Workspace.DynamoModel.CustomNodeManager.Contains(funcId))
            {
                return(true);
            }

            CustomNodeManager manager = Workspace.DynamoModel.CustomNodeManager;

            // if there is a node with this name, use it instead
            if (manager.Contains(NickName))
            {
                funcId = manager.GetGuidFromName(NickName);
                return(true);
            }

            return(false);
        }
示例#2
0
        private bool VerifyFuncId(ref Guid funcId, string nickname)
        {
            if (funcId == null)
            {
                return(false);
            }

            // if the dyf does not exist on the search path...
            if (this.dynamoModel.CustomNodeManager.Contains(funcId))
            {
                return(true);
            }

            CustomNodeManager manager = this.dynamoModel.CustomNodeManager;

            // if there is a node with this name, use it instead
            if (!manager.Contains(nickname))
            {
                return(false);
            }

            funcId = manager.GetGuidFromName(nickname);
            return(true);
        }