public Include convertToInclude() { Include save; save = new Include(this.Name + "*", null, null); return save; }
public Include convertToInclude() { Include save; if (this.GetType() == typeof(PlayStationPortableID) || this.GetType() == typeof(PlayStation3ID)) { save = new Include(null as string, this.ToString(), this.type); } else if (this.GetType() == typeof(PlayStation2ID) || this.GetType() == typeof(PlayStation1ID)) { save = new Include(this.ToString(), null as String, this.type); } else { throw new NotSupportedException(this.GetType().ToString()); } return save; }
protected override void LoadData(XmlElement element) { Type = ""; foreach (XmlAttribute attr in element.Attributes) { switch (attr.Name) { case "type": this.Type = attr.Value; break; default: throw new NotSupportedException(attr.Name); } } foreach (XmlElement child in element.ChildNodes) { switch (child.Name) { case "include": Include save = new Include(this, child); Inclusions.Add(save); break; default: throw new NotSupportedException(child.Name); } } }
public Include addSave(string savePath, string saveFile) { Include save = new Include(this, saveFile, savePath); this.Inclusions.Add(save); this.XML.AppendChild(save.XML); return save; }
public void Add(Include file) { this.Inclusions.Add(file); this.XML.AppendChild(file.XML); }
public Exclude(Include parent, XmlElement element) : this(parent, element, parent.Type) { }
public Exclude(Include parent, string name, string path) : this(parent, name, path, parent.Type) { }