/// <summary> /// Initialize the 'All Publishers' node of the applications tree /// </summary> private void InitializeAllPublishers() { Infragistics.Win.Appearance ignoredAppearance = new Infragistics.Win.Appearance(); ignoredAppearance.ForeColor = System.Drawing.Color.Gray; // Add the publishers to the tree try { ApplicationsWorkItemController wiController = explorerView.WorkItem.Controller as ApplicationsWorkItemController; bool showIncluded = wiController.ShowIncludedApplications; bool showIgnored = wiController.ShowIgnoredApplications; ApplicationsDAO lApplicationsDAO = new ApplicationsDAO(); DataTable dt = lApplicationsDAO.GetAllPublisherNamesAsDataTable(wiController.PublisherFilter, showIncluded, showIgnored); UltraTreeNode[] publisherNodes = new UltraTreeNode[dt.Rows.Count]; for (int i = 0; i < dt.Rows.Count; i++) { string lPublisher = dt.Rows[i][0].ToString(); UltraTreeNode publisherNode = new UltraTreeNode(lPublisher, lPublisher); publisherNode.Tag = "PUBLISHER"; publisherNode.Override.ShowExpansionIndicator = ShowExpansionIndicator.CheckOnExpand; publisherNodes[i] = publisherNode; } explorerView.AllPublishersNode.Nodes.AddRange(publisherNodes); } catch (Exception ex) { logger.Error(ex.Message); } }