Пример #1
0
        internal bool Remove(int SlotID = -1)
        {
            List<VirtualSlot> sList = List(SlotID);
            if (sList.Count == 0) { return true; }

            foreach (VirtualSlot vS in sList)
            {
                vS.Remove();
            }

            if (SlotID == -1)
            {
                zCol.Clear();
                return true;
            }
            else
            {
                return (zCol.Remove(SlotID) != null);
            }
        }
Пример #2
0
        internal bool Remove(int FileID = -1)
        {
            List<VirtualFile> sList = List(FileID);
            if (sList.Count == 0) { return true; }

            foreach (VirtualFile vS in sList)
            {
                vS.Remove();
            }

            if (FileID == -1)
            {
                zCol.Clear();
                StatusLine = "Removed";
                Status = SlotStatus.Failed;
                return true;
            }

            return zCol.Remove(FileID);
        }
Пример #3
0
 internal void Clear()
 {
     CancelConnection();
     zCol.Clear();
 }