Example #1
0
        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);
        }
Example #2
0
        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);
            }
        }