private void buttonPanel_Click(object sender, EventArgs e)
        {
            if (panelViewer.Controls.Count == 0)
            {
                ViewerControl      = new StiDashboardViewerControl();
                ViewerControl.Dock = DockStyle.Fill;

                panelViewer.Controls.Add(ViewerControl);
            }

            ViewerControl.Report = GetTemplate();
        }
        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);
        }