Ejemplo n.º 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("");
            }
        }
Ejemplo n.º 2
0
        public override string ToString()
        {
            ProjectObject scriptObject;

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