private void scanActiveDirectoryToolStripMenuItem_Click(object sender, EventArgs e) { ImportFromAD activeDirectoryForm = new ImportFromAD(); activeDirectoryForm.ShowDialog(); this.UpdateFavoritesBindingSource(); }
private void ScanActiveDirectoryToolStripMenuItem_Click(object sender, EventArgs e) { using (var activeDirectoryForm = new ImportFromAD(this.persistence, this.connectionManager)) { activeDirectoryForm.ShowDialog(); this.UpdateFavoritesBindingSource(); } }