public void RefreshApps() { try { // load apps List <SSOAppInfo> applications = SSOManager.GetApplications(); this.ResultNodes.Clear(); foreach (SSOAppInfo app in applications) { ResultNode resultNode = new ResultNode(); resultNode.DisplayName = app.Name; resultNode.SubItemDisplayNames.AddRange(new string[5] { app.Status, app.Description, app.AdminAccounts, app.UserAccounts, app.Contact }); this.ResultNodes.Add(resultNode); } } catch (Exception ex) { MsgBoxUtil.Show(this.SnapIn, ex); } }
public void RefreshApps() { try { // load apps List <SSOAppInfo> applications = SSOManager.GetApplications(); this.Children.Clear(); foreach (SSOAppInfo appInfo in applications) { AppScopeNode appScopeNode = new AppScopeNode(appInfo.Name); this.Children.Add(appScopeNode); } } catch (Exception ex) { MsgBoxUtil.Show(this.SnapIn, ex); } }