コード例 #1
0
ファイル: MPViewer.cs プロジェクト: kevinye1980/mpviewer
        //---------------------------------------------------------------------
        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);
            }
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: jpavleck/mpviewer
        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);
            }
        }
コード例 #3
0
ファイル: Program.cs プロジェクト: kevinye1980/mpviewer
        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);
            }
        }
コード例 #4
0
ファイル: MPViewer.cs プロジェクト: JanVanMeirvenne/mpviewer
        //---------------------------------------------------------------------
        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);
            }
        }