public FilteredLogSlot AddSlot(string Name, FilterList Filters) { FilteredLogSlot Slot = null; if (string.IsNullOrEmpty(Name) || Filters == null) { return(null); } Slot = new FilteredLogSlot(Name, Filters); Slots.Add(Slot); return(Slot); }
public void RemoveSlot(string Name) { FilteredLogSlot ToRemoveSlot = null; foreach (FilteredLogSlot slot in Slots) { if (slot.Name == Name) { ToRemoveSlot = slot; break; } } if (ToRemoveSlot != null) { ToRemoveSlot.Dispose(); Slots.Remove(ToRemoveSlot); } }