protected override void LoadChildren() { foreach (OU ou in ADQuery.GetOUs(_ou)) { base.Children.Add(new OUViewModel(ou, this)); } }
private void SearchButton_Click(object sender, RoutedEventArgs e) { if (MachineNameText.Text.Length > 0) { DomainMachine[] DomainMachines = ADQuery.FindMachine(MachineNameText.Text); MachineItems.ItemsSource = DomainMachines; } }
private void SearchButton_Click(object sender, RoutedEventArgs e) { if (UserNameText.Text.Length > 0) { DomainUser [] DomainUsers = ADQuery.FindUser(UserNameText.Text); UserItems.ItemsSource = DomainUsers; } }
public ADPicker() { InitializeComponent(); Domain[] domains = ADQuery.GetDomains(); AllDomainsViewModel viewModel = new AllDomainsViewModel(domains); base.DataContext = viewModel; }