Пример #1
0
        public void Read(IProject project, XmlElement elem)
        {
            sources.Clear();
            name = elem.GetAttribute("id");
            if (name.Length == 0)
            {
                throw new InvalidOperationException("Name attribute not found");
            }

            foreach (XmlElement child in elem.SelectNodes("source"))
            {
                ProjectIconSource src = new ProjectIconSource();
                src.Read(project, child);
                sources.Add(src);
            }
        }
Пример #2
0
 public void Add(ProjectIconSource source)
 {
     List.Add (source);
 }
Пример #3
0
        public void Read(IProject project, XmlElement elem)
        {
            sources.Clear ();
            name = elem.GetAttribute ("id");
            if (name.Length == 0)
                throw new InvalidOperationException ("Name attribute not found");

            foreach (XmlElement child in elem.SelectNodes ("source")) {
                ProjectIconSource src = new ProjectIconSource ();
                src.Read (project, child);
                sources.Add (src);
            }
        }
Пример #4
0
 public void Add(ProjectIconSource source)
 {
     List.Add(source);
 }