Exemplo n.º 1
0
        private void btnExecute_Click(object sender, EventArgs e)
        {
            if (!String.IsNullOrEmpty(comboNetworkGroupList.Text))
            {
                UserAccessDetail userAccessDetailTest = new UserAccessDetail();
                if (userAccessDetailTest.UserWithTechRefIsNetworkGroupMember("CHCO", "System builders"))
                {
                    Debug.WriteLine("Tech Ref is in Group");
                }
                else
                {
                    Debug.WriteLine("Tech Ref is NOT in Group");
                }

                lstADGroupMembers.Items.Clear();

                UserAccessDetail userAccessDetail = new UserAccessDetail();
                Collections.CaseIgnoringSortedSetType groupUserCollection = userAccessDetail.NetworkUsersForGroupName(comboNetworkGroupList.Text);

                foreach (string userName in groupUserCollection)
                {
                    lstADGroupMembers.Items.Add(userName);
                }
            }
        }
Exemplo n.º 2
0
        static void UpdateComboThread(Object obj)
        {
            MainForm         mainForm         = (MainForm)obj;
            UserAccessDetail userAccessDetail = new UserAccessDetail();

            Collections.CaseIgnoringSortedSetType networkGroupSet = userAccessDetail.NetworkGroupSet();
            mainForm.UpdateCombo(networkGroupSet);
        }