public void Build()
        {
            if (report == null || !Dashboards.Any())
            {
                return;
            }

            if (ViewerControl != null && Controls.Contains(ViewerControl))
            {
                Controls.Remove(ViewerControl);
            }

            ViewerControl      = new StiDashboardViewerControl(Report);
            ViewerControl.Dock = DockStyle.Fill;
            Controls.Add(ViewerControl);
            Controls.SetChildIndex(ViewerControl, 0);
        }
Beispiel #2
0
 public bool Any()
 {
     return(HubVariables.Any() ||
            Datajobs.Any() ||
            Datalinks.Any() ||
            Connections.Any() ||
            Tables.Any() ||
            ColumnValidations.Any() ||
            CustomFunctions.Any() ||
            FileFormats.Any() ||
            RemoteAgentHubs.Any() ||
            DatalinkTests.Any() ||
            Views.Any() ||
            Apis.Any() ||
            Dashboards.Any() ||
            ListOfValues.Any() ||
            Tags.Any() ||
            TagObjects.Any());
 }