Exemple #1
0
 public bool remove(ArchiveEntry ae)
 {
     if (this.entries.Contains(ae))
     {
         this.entries.Remove(ae);
         this.entries.Sort();
         return(true);
     }
     return(false);
 }
Exemple #2
0
        public bool remove(string Name)
        {
            ArchiveEntry ent = getByName(Name);

            if (ent != null)
            {
                this.entries.Remove(ent);
                this.entries.Sort();
                return(true);
            }

            return(false);
        }
Exemple #3
0
        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);
            }
        }