Create and modify search folders.
Inheritance: ShellItem
Beispiel #1
0
    /// <summary>
    /// Navigates to a search folder
    /// </summary>
    /// <param name="SearchQuery">The query of the search</param>
    /// <param name="saveFolderSettings">Should the folder's settings be saved?</param>
    /// <param name="isInSameTab"></param>
    /// <param name="refresh">Should the List be Refreshed?</param>
    public void Navigate_Full(String SearchQuery, Boolean saveFolderSettings, Boolean isInSameTab = false, Boolean refresh = false) {
      this.IsSearchNavigating = true;
      if (saveFolderSettings) SaveSettingsToDatabase(this.CurrentFolder);

      _ResetEvent.Set();
      var searchCondition = SearchConditionFactory.ParseStructuredQuery(this.PrepareSearchQuery(SearchQuery));
      var shellItem = new ShellItem(this.CurrentFolder.PIDL);
      var searchFolder = new ShellSearchFolder(searchCondition, shellItem);
      IListItemEx searchItem = FileSystemListItem.ToFileSystemItem(this.LVHandle, searchFolder);
      this.NavigateSearch(searchItem, isInSameTab, refresh, this.IsNavigationInProgress);
    }