예제 #1
0
파일: Archive.cs 프로젝트: St0rmy95/AtumZip
 public bool remove(ArchiveEntry ae)
 {
     if (this.entries.Contains(ae))
     {
         this.entries.Remove(ae);
         this.entries.Sort();
         return(true);
     }
     return(false);
 }
예제 #2
0
파일: Archive.cs 프로젝트: St0rmy95/AtumZip
        public bool remove(string Name)
        {
            ArchiveEntry ent = getByName(Name);

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

            return(false);
        }
예제 #3
0
파일: Archive.cs 프로젝트: St0rmy95/AtumZip
        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);
            }
        }