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