Пример #1
0
        internal bool RemoveConnection(int ConnectionID = -1)
        {
            bool bVal = false;
            List <VirtualConnection> zList = zCol.ObjectList(ConnectionID).Cast <VirtualConnection>().ToList();

            foreach (VirtualConnection vCon in zList)
            {
                CancelConnection(vCon.ID);
                bVal = zCol.Remove(vCon.ID);

                if (ConnectionID != -1)
                {
                    return(bVal);
                }
            }

            return(true);
        }
Пример #2
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);
            }
        }
Пример #3
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);
        }
Пример #4
0
 internal bool Remove(int CommandID = -1) { return zCol.Remove(CommandID); }