packages/Windows API Code Pack 1.1/source/Samples/Shell/CommonFileDialogsDemo/CS/CommonFileDialogsDemo/Form1.cs
/// <summary>
/// Load all the Saved Searches on the current system
/// </summary>
Load all the Saved Searches on the current system
Load all the Saved Searches on the current system
private void LoadSavedSearches()
        {
            foreach (ShellObject so in KnownFolders.SavedSearches)
            {
                if (so is ShellSavedSearchCollection)
                    savedSearchComboBox.Items.Add(Path.GetFileName(so.ParsingName));
            }
            if (savedSearchComboBox.Items.Count > 0)
                savedSearchComboBox.SelectedIndex = 0;
            else
                savedSearchButton.Enabled = false;
        }
private void LoadSavedSearches ( ) { foreach ( ShellObject so in KnownFolders . SavedSearches ) { if ( so is ShellSavedSearchCollection ) savedSearchComboBox . Items . Add ( Path . GetFileName ( so . ParsingName ) ) ; } if ( savedSearchComboBox . Items . Count > 0 ) savedSearchComboBox . SelectedIndex = 0 ; else savedSearchButton . Enabled = false ; }
Load all the Saved Searches on the current system
Load all the Saved Searches on the current system