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"); }
public abstract void SaveData(University university);