示例#1
0
        public Include convertToInclude() {
            Include save;


            save = new Include(this.Name + "*", null, null);


            return save;
        }
示例#2
0
        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;
        }
示例#3
0
 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);
         }
     }
 }
示例#4
0
 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;
 }
示例#5
0
 public void Add(Include file) {
     this.Inclusions.Add(file);
     this.XML.AppendChild(file.XML);
 }
示例#6
0
 public Exclude(Include parent, XmlElement element) : this(parent, element, parent.Type) { }
示例#7
0
 public Exclude(Include parent, string name, string path)
     : this(parent, name, path, parent.Type) {
 }