Ejemplo n.º 1
0
        public void addExternalResource(String path)
        {
            ExternalResource resource = new ExternalResource(path);

            externalResources.Add(resource);
            onResourceAdded(resource);
        }
Ejemplo n.º 2
0
        public void removeExternalResource(String path)
        {
            ExternalResource matchingRef = null;

            foreach (ExternalResource reference in externalResources)
            {
                if (reference.Path == path)
                {
                    matchingRef = reference;
                    break;
                }
            }
            if (matchingRef != null)
            {
                externalResources.Remove(matchingRef);
                onResourceRemoved(matchingRef);
            }
        }