コード例 #1
0
        private void scanActiveDirectoryToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ImportFromAD activeDirectoryForm = new ImportFromAD();

            activeDirectoryForm.ShowDialog();
            this.UpdateFavoritesBindingSource();
        }
コード例 #2
0
 private void ScanActiveDirectoryToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (var activeDirectoryForm = new ImportFromAD(this.persistence, this.connectionManager))
     {
         activeDirectoryForm.ShowDialog();
         this.UpdateFavoritesBindingSource();
     }
 }