public void SetReports(LogReportPack pack)
        {
            grid.Rows.Clear();
            grid.SelectionMode = DataGridViewSelectionMode.FullRowSelect;

            if (null == pack)
            {
                return;
            }

            foreach (LogReport report in pack.Reports)
            {
                int r = grid.Rows.Add();
                grid[COL_BMP, r].Value  = LogReportControl.GetBitmap(report.MostCriticalType);
                grid[COL_DATE, r].Value = report.CreationDate.ToShortDateString();
                grid[COL_NAME, r].Value = report.Name;
                grid.Rows[r].Tag        = report;
            }
        }
Beispiel #2
0
 public void SetReport(LogReportPack pack)
 {
     viewer.SetReportPack(pack);
 }
Beispiel #3
0
        void load(string path)
        {
            LogReportPack pack = LogReportIO.Instance.CreateFromFile(path);

            SetReportPack(pack);
        }
Beispiel #4
0
 public void SetReportPack(LogReportPack pack)
 {
     _pack = pack;
     list.SetReports(pack);
 }