public void Show(Report report = null, bool withCompile = false) { Thread th = new Thread(() => { if (ProgressBar != null) { ProgressBar.ProcessRun(1); } if (report == null) { report = CurrentReport = new Report(); } CurrentReport = report; if (withCompile) { report.HTML = MRL.CompileToHTML(report); } try { ShowReport(report.HTML); if (ProgressBar != null) { ProgressBar.ProcessRun(100); } } catch { } }); th.IsBackground = true; th.SetApartmentState(ApartmentState.STA); th.Start(); }
public void Filter(string text) { Report r = new Report(MainReport); r.HTML = MRL.Filter(text, r); OnlyShowReport(r, false); }