コード例 #1
0
ファイル: MainForm.cs プロジェクト: EndsleighCC/AllSorts
        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);
                }
            }
        }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: EndsleighCC/AllSorts
        static void UpdateComboThread(Object obj)
        {
            MainForm         mainForm         = (MainForm)obj;
            UserAccessDetail userAccessDetail = new UserAccessDetail();

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