Exemplo n.º 1
0
        /// <summary>
        /// Class constructor
        /// </summary>
        public FileListViewModel(IBrowseNavigation browseNavigation)
            : this()
        {
            this._BrowseNavigation = browseNavigation;

            this._ParsedFilter = BrowseNavigation.GetParsedFilters(this._FilterString);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Applies a filter string (which can contain multiple
        /// alternative regular expression filter items) and updates
        /// the current display.
        /// </summary>
        /// <param name="filterText"></param>
        public void ApplyFilter(string filterText)
        {
            Logger.DebugFormat("ApplyFilter method with '{0}'", filterText);

            _FilterString = filterText;

            string[] tempParsedFilter = BrowseNavigation.GetParsedFilters(_FilterString);

            // Optimize nultiple requests for populating same view with unchanged filter away
            if (tempParsedFilter != this._ParsedFilter)
            {
                this._ParsedFilter = tempParsedFilter;
                this.PopulateView();
            }
        }