Ejemplo n.º 1
0
        public override University LoadData()
        {
            xDocument.Load(FileName);

            XmlNode xRoot = xDocument.DocumentElement;

            if (xRoot.Name != "groups")
            {
                throw new XmlException("Illegal file structure.");
            }

            University groups = new University();

            foreach (XmlNode xGroup in xRoot)
            {
                groups.AddGroup(LoadGroup(xGroup));
            }

            return(groups);
        }
 public RemoveGroupCommand(University receiver,
                           Group group) : base(receiver)
 {
     this.oldGroup = group ??
                     throw new ArgumentNullException("group");
 }
Ejemplo n.º 3
0
 public abstract void SaveData(University university);