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); }
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); } }
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); }
internal bool Remove(int CommandID = -1) { return zCol.Remove(CommandID); }