private void cmdDrillDownMulti_Click(object sender, EventArgs e) { DelimitedList dsList; string datasourceList; dsList = new DelimitedList(); //Find all of the thumbnail section controls foreach (Control currControl in thumbnails.Controls) { Members_Reports_Thumbnail_Dashboard_Thumbnail_Section thumbControl; thumbControl = (Members_Reports_Thumbnail_Dashboard_Thumbnail_Section)currControl; //Build a list of the datasource ids if (thumbControl.Selected) { dsList.Append(thumbControl.DatasourceIdString); } } datasourceList = dsList.ToString(); if (datasourceList.Length == 0) { return; } _log.DebugFormat("Built a data source list of '{0}'", dsList.ToString()); drillDownMultiple(datasourceList); }
private string getConnectedDatasourceList(DiagramNode node) { DelimitedList list; List <DiagramNode> connectedNodes; list = new DelimitedList(); connectedNodes = new List <DiagramNode>(); //Make sure we include this node connectedNodes.Add(node); foreach (DiagramNodeConnection currConnection in _connections) { if (currConnection.FirstNode == node && !connectedNodes.Contains(currConnection.SecondNode)) { connectedNodes.Add(currConnection.SecondNode); } if (currConnection.SecondNode == node && !connectedNodes.Contains(currConnection.FirstNode)) { connectedNodes.Add(currConnection.FirstNode); } } foreach (DiagramNode currNode in connectedNodes) { string datasourceString; datasourceString = currNode.ConfiguredDatasourceId.ToString(); if (currNode.SubTypeId != null) { datasourceString += "." + currNode.SubTypeId.Value.ToString(); } list.Append(datasourceString); } return(list.ToString()); }