Ejemplo n.º 1
0
        /* Function: AddLinkedFile
         */
        public void AddLinkedFile(Path file, Config.PropertyLocation propertyLocation, PageType type = PageType.All)
        {
                        #if DEBUG
            if (file.IsRelative)
            {
                throw new Exception("Paths passed to AddLinkedFile() must be absolute.");
            }
                        #endif

            if (links == null)
            {
                links = new List <LinkStatement>();
            }

            LinkStatement entry = new LinkStatement();
            entry.Type             = type;
            entry.File             = file;
            entry.PropertyLocation = propertyLocation;

            links.Add(entry);
        }
Ejemplo n.º 2
0
 public bool HasSameProperties(LinkStatement other)
 {
     return(Type == other.Type && File == other.File);
 }