Esempio n. 1
0
 private void ButtonMembersSpecifiedGroupGo_Click(object sender, EventArgs e)
 {
     try
     {
         using (FormActiveDirectoryResultsView frm = new FormActiveDirectoryResultsView())
         {
             frm.Caption = "List of Members of group: " + textBoxMembersSpecifiedGroup.Text;
             frm.TransactionType = FormActiveDirectoryResultsView.TransactionTypes.MemberOfGroup;
             frm.SearchType = FormActiveDirectoryResultsView.SearchTypes.User;
             frm.Domain = userControlDomainMemberofGroup.Text;
             frm.Name = textBoxMembersSpecifiedGroup.Text;
             frm.ShowDialog();
         } 
     }
     catch (Exception)
     {
         throw;
     }
 }
Esempio n. 2
0
 private void buttonDomainGroupsOfUserGo_Click(object sender, EventArgs e)
 {
     try
     {
         using (FormActiveDirectoryResultsView frm = new FormActiveDirectoryResultsView())
         { 
             frm.Caption = "List of Groups of user: " + textBoxDomainGroupsOfUser.Text; ;
             frm.TransactionType = FormActiveDirectoryResultsView.TransactionTypes.GroupsOfUser;
             frm.SearchType = FormActiveDirectoryResultsView.SearchTypes.Group;
             frm.Domain = userControlDomainGroupsOfUser.Text;
             frm.Name = textBoxDomainGroupsOfUser.Text; 
             frm.ShowDialog();
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
Esempio n. 3
0
        private void buttonSearchGroupUserGo_Click(object sender, EventArgs e)
        {
            try
            {
                using (FormActiveDirectoryResultsView frm = new FormActiveDirectoryResultsView())
                {                    
                    if (comboBoxGroupUser.Text == "Group")
                    {
                        frm.SearchType = FormActiveDirectoryResultsView.SearchTypes.Group;
                        frm.Caption = "Search Results for Groups like ''" + textBoxSearchGroupUser.Text + "''";
                    }
                    else //User
                    {
                        frm.SearchType = FormActiveDirectoryResultsView.SearchTypes.User;
                        frm.Caption = "Search Results for Users like ''" + textBoxSearchGroupUser.Text + "''";
                    }

                    frm.Name = textBoxSearchGroupUser.Text;
                    frm.Domain = userControlDomainSearch.Text;
                    frm.TransactionType = FormActiveDirectoryResultsView.TransactionTypes.SearchGroupOrUser;
                    frm.ShowDialog();
                }
            }
            catch (Exception)
            {
                throw;
            }
        }