예제 #1
0
        /// <summary>
        /// Gets the absolute path of the file this object belongs to.
        /// </summary>
        public override string GetFilePath()
        {
            ProjectObject document;

            if (ObjectDatabase.TryGetObject(DocumentId, out document))
            {
                return(document.GetFilePath());
            }
            else
            {
                return("");
            }
        }
예제 #2
0
        public override string ToString()
        {
            ProjectObject scriptObject;

            if (ObjectDatabase.TryGetObject(m_scriptKey, out scriptObject) &&
                !(scriptObject is NullObject))
            {
                return(scriptObject.ToString());
            }
            else
            {
                return(TypeName);
            }
        }