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); } }
public void Add(ProjectIconSource source) { List.Add (source); }
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); } }
public void Add(ProjectIconSource source) { List.Add(source); }