Inheritance: System.Windows.Forms.Form
Exemple #1
0
        public void GenerateReport(String savePath)
        {
            if (ScanResult.ScanException != null)
            {
                System.Console.WriteLine(string.Format("{0}", ScanResult.ScanException.Message));
            }
            else
            {
                if (ScanResult.FileExceptions.Count > 0)
                {
                    System.Console.WriteLine("Scan completed with errors (see report).");
                }
                else
                {
                    System.Console.WriteLine("Scan completed successfully.");
                }

                System.Console.WriteLine("Please wait while we generate the report...");
                try
                {
                    FormReport report = new FormReport();
                    report.Generate(BDROM, selectedPlayLists, ScanResult, savePath);
                }
                catch (Exception ex)
                {
                    System.Console.WriteLine(string.Format("{0}", (ex.Message)));
                }
            }
        }
Exemple #2
0
        public void GenerateReportCLI(String savePath, Boolean quick = false)
        {
            if (ScanResult.ScanException != null)
            {
                System.Console.WriteLine(string.Format("{0}", ScanResult.ScanException.Message));
            }
            else
            {
                if (ScanResult.FileExceptions.Count > 0)
                {
                    System.Console.Error.WriteLine("Scan completed with errors (see report).");
                }
                else
                {
                    System.Console.Error.WriteLine("Scan completed successfully.");
                }

                try {
                    if (quick)
                    {
                        var report = new QuickReport();
                        report.Generate(BDROM, selectedPlaylists, ScanResult, savePath);
                    }
                    else
                    {
                        var report = new FormReport();
                        report.Generate(BDROM, selectedPlaylists, ScanResult, savePath);
                    }
                }
                catch (Exception ex) {
                    System.Console.WriteLine(string.Format("{0}", (ex.Message)));
                }
            }
        }
Exemple #3
0
 private void GenerateReportWork(
     object sender,
     DoWorkEventArgs e)
 {
     try
     {
         List<TSPlaylistFile> playlists = (List<TSPlaylistFile>)e.Argument;
         FormReport report = new FormReport();
         report.Generate(BDROM, playlists, ScanResult);
         e.Result = report;
     }
     catch (Exception ex)
     {
         e.Result = ex;
     }
 }
Exemple #4
0
        public void GenerateReport(String savePath)
        {
            if (ScanResult.ScanException != null)
            {
                System.Console.WriteLine(string.Format("{0}", ScanResult.ScanException.Message));
            }
            else
            {
                if (ScanResult.FileExceptions.Count > 0)
                {
                    System.Console.WriteLine("Scan completed with errors (see report).");
                }
                else
                {
                    System.Console.WriteLine("Scan completed successfully.");
                }

                System.Console.WriteLine("Please wait while we generate the report...");
                try
                {
                    FormReport report = new FormReport();
                    report.Generate(BDROM, selectedPlayLists, ScanResult, savePath);
                }
                catch (Exception ex)
                {
                    System.Console.WriteLine(string.Format("{0}", (ex.Message)));
                }
            }
        }