示例#1
0
 public UserFilterObject(FilterList List, string Name, bool LinkWithAnd)
 {
     Filters = List;
     FilterName = Name;
     LinkWithAndState = LinkWithAnd;
     Filters.LinkWithAnd = LinkWithAnd;
 }
示例#2
0
 public UserFilterObject(FilterList List, string Name, bool LinkWithAnd)
 {
     Filters             = List;
     FilterName          = Name;
     LinkWithAndState    = LinkWithAnd;
     Filters.LinkWithAnd = LinkWithAnd;
 }
示例#3
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;
        }
示例#4
0
        public void Dispose()
        {
            CheckDisposed();

            FilteredList.Clear();
            FilteredList = null;
            SlotFilters.Clear();
            SlotFilters = null;
            Ui.ClearTab();
            Ui.Dispose();
            Ui       = null;
            Disposed = true;
        }
示例#5
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);
        }
示例#6
0
        public static List <UserFilterObject> LoadFilters(string Filename)
        {
            IFormatter BinFormat = new BinaryFormatter();
            Stream     FileObj   = null;
            List <UserFilterObject> Filters;

            try
            {
                FileObj = new FileStream(Filename, FileMode.Open, FileAccess.Read);
                Filters = (List <UserFilterObject>)BinFormat.Deserialize(FileObj);
                FileObj.Close();
            }
            catch
            {
                return(null);
            }

            return(Filters);
        }
示例#7
0
        public static List<UserFilterObject> LoadFilters(string Filename)
        {
            IFormatter BinFormat = new BinaryFormatter();
            Stream FileObj = null;
            List<UserFilterObject> Filters;

            try
            {
                FileObj = new FileStream(Filename, FileMode.Open, FileAccess.Read);
                Filters = (List<UserFilterObject>)BinFormat.Deserialize(FileObj);
                FileObj.Close();
            }
            catch
            {
                return null;
            }

            return Filters;
        }
示例#8
0
 public void SetFilter(FilterList filters)
 {
     Filters = filters;
 }
示例#9
0
 public void SetFilter(FilterList filters)
 {
     Filters = filters;
 }
示例#10
0
 public FilteredLogSlot(string Slotname, FilterList Filters)
 {
     FilteredList = new EntryList();
     SlotFilters  = Filters;
     SlotName     = Slotname;
 }