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

            Domain[]            domains   = ADQuery.GetDomains();
            AllDomainsViewModel viewModel = new AllDomainsViewModel(domains);

            base.DataContext = viewModel;
        }