Esempio n. 1
0
        public FilterableLogEntryList CopyWithUpdatedLogEntries(IEnumerable<BaseEntry> entries)
        {
            FilterableLogEntryList newLogEntryList = new FilterableLogEntryList(entries, this.Filters);

            newLogEntryList.SetupFilterList();

            // preserve selected state of filters from previous instance
            foreach (var flagItem in this._flags)
            {
                if (newLogEntryList._flags.ContainsKey(flagItem.Key))
                    newLogEntryList._flags[flagItem.Key] = this._flags[flagItem.Key];
            }

            return newLogEntryList;
        }
Esempio n. 2
0
        public FilterableLogEntryList CopyWithUpdatedLogEntries(IEnumerable <BaseEntry> entries)
        {
            FilterableLogEntryList newLogEntryList = new FilterableLogEntryList(entries, this.Filters);

            newLogEntryList.SetupFilterList();

            // preserve selected state of filters from previous instance
            foreach (var flagItem in this._flags)
            {
                if (newLogEntryList._flags.ContainsKey(flagItem.Key))
                {
                    newLogEntryList._flags[flagItem.Key] = this._flags[flagItem.Key];
                }
            }

            return(newLogEntryList);
        }