Example #1
0
 // Report
 protected override void _BtnReport(string currentTab)
 {
     switch (currentTab)
     {
     case "Orders":
         DataHolder dh = Mdel.GetReport(currentTab);
         View.ShowReport(dh);
         break;
     }
 }
Example #2
0
        // METHODS

        // Set data
        public void SetData(DataHolder dh)
        {
            DclassReport report = dh.DataCls as DclassReport;

            // label
            lblReport.Text = report.ReportName;

            // create series (chart)
            Series series = new Series(report.ReportType);

            series.Points.DataBindXY(report.XVal.ToArray(), report.YVal.ToArray());

            // set data on chart
            chart.Series.Add(series);

            // chart screen shot
            _chartImage = _CreateChartScreenshot();
        }