private void ImportFromRegistry() { List <FavoriteConfigurationElement> favoritesFromRegistry = ImportRdpRegistry.Import(this.connectionManager); lock (this.DiscoveredConnections) { this.DiscoveredConnections.AddRange(favoritesFromRegistry); } }
private void ScanRegistryToolStripMenuItem_Click(object sender, EventArgs e) { var favoritesToImport = ImportRdpRegistry.Import(this.connectionManager); ImportFavoritesWithManagerImport(favoritesToImport); }
private void scanRegistryToolStripMenuItem_Click(object sender, EventArgs e) { List <FavoriteConfigurationElement> favoritesToImport = ImportRdpRegistry.Import(); this.ImportFavoritesWithManagerImport(favoritesToImport); }