//--------------------------------------------------------------------- private void saveToHTMLToolStripMenuItem_Click(object sender, EventArgs e) { SaveFileDialog dlg = new SaveFileDialog(); dlg.AddExtension = true; dlg.CheckPathExists = true; dlg.DefaultExt = "html"; dlg.Filter = "HTML files (*.html)|*.html"; if (dlg.ShowDialog() == DialogResult.OK) { ReportGenerator reportGenerator = new ReportGenerator(m_dataset, m_managementPack); reportGenerator.GenerateHTMLReport(dlg.FileName, false); } }
private static void GenerateHTMLForMP(string[] args) { try { bool exportAlertGeneratingWorkflowsOnly = false; ManagementPack mp = LoadManagementPack(args); DatasetCreator datasetCreator = new DatasetCreator(mp); ReportGenerator reportGenerator = new ReportGenerator(datasetCreator.Dataset,mp); exportAlertGeneratingWorkflowsOnly = (args.Length == 3 && string.Compare(args[2],"AlertGeneratingWorkflowsOnly",true) == 0); reportGenerator.GenerateHTMLReport(args[1], exportAlertGeneratingWorkflowsOnly); } catch (Exception exception) { Console.WriteLine(exception.Message); } }
private static void GenerateHTMLForMP(string[] args) { try { bool exportAlertGeneratingWorkflowsOnly = false; ManagementPack mp = LoadManagementPack(args); DatasetCreator datasetCreator = new DatasetCreator(mp); ReportGenerator reportGenerator = new ReportGenerator(datasetCreator.Dataset, mp); exportAlertGeneratingWorkflowsOnly = (args.Length == 3 && string.Compare(args[2], "AlertGeneratingWorkflowsOnly", true) == 0); reportGenerator.GenerateHTMLReport(args[1], exportAlertGeneratingWorkflowsOnly); } catch (Exception exception) { Console.WriteLine(exception.Message); } }
//--------------------------------------------------------------------- private void saveToHTMLToolStripMenuItem_Click(object sender, EventArgs e) { SaveFileDialog dlg = new SaveFileDialog(); dlg.AddExtension = true; dlg.CheckPathExists = true; dlg.DefaultExt = "html"; dlg.Filter = "HTML files (*.html)|*.html"; if (dlg.ShowDialog() == DialogResult.OK) { ReportGenerator reportGenerator = new ReportGenerator(m_dataset,m_managementPack.Values.ToList<ManagementPack>()); reportGenerator.GenerateHTMLReport(dlg.FileName,false); } }