Esempio n. 1
0
        public ImportFromAD()
        {
            this.InitializeComponent();
            this.gridComputers.AutoGenerateColumns = false;

            this.adClient = new ActiveDirectoryClient();
            this.adClient.ListComputersDone += this.AdClient_OnListComputersDone;
            this.adClient.ComputerFound += this.OnClientComputerFound;

            SortableList<ActiveDirectoryComputer> computers = new SortableList<ActiveDirectoryComputer>();
            this.bsComputers.DataSource = computers;
        }