Esempio n. 1
0
 public void AddGroup(ElementGroup grp)
 {
     if (grp != null && !Groups.Contains(grp))
     {
         Groups.Add(grp);
     }
 }
Esempio n. 2
0
        public void LoadFromParentXmlElement(XmlElement root)
        {
            Groups.Clear();
            var lst = root.GetElementsByTagName("Groups");

            if (lst.Count > 0)
            {
                foreach (XmlElement node in ((XmlElement)lst[0]).GetElementsByTagName("Group"))
                {
                    var grp = new ElementGroup(this, null);
                    grp.LoadFromXmlElement(node);
                }
            }
        }
Esempio n. 3
0
 public void RemoveGroup(ElementGroup grp)
 {
     Groups.Remove(grp);
 }