public bool remove(ArchiveEntry ae) { if (this.entries.Contains(ae)) { this.entries.Remove(ae); this.entries.Sort(); return(true); } return(false); }
public bool remove(string Name) { ArchiveEntry ent = getByName(Name); if (ent != null) { this.entries.Remove(ent); this.entries.Sort(); return(true); } return(false); }
public bool add(ArchiveEntry ae) { int index = this.entries.IndexOf(ae); if (index != -1) { this.entries[index] = ae; return(false); } else { this.entries.Add(ae); this.entries.Sort(); return(true); } }