Beispiel #1
0
 internal static void Init()
 {
     if (Core.GuiThread.InvokeRequired)
     {
         Core.GuiThread.InvokeFast(new MethodInvoker(Init));
     }
     else
     {
         dialog = new ReportViewerDialog(RuntimeCore.Reports);
         dialog.FormClosing += new FormClosingEventHandler(dialog_FormClosing);
         dialog.CreateWindow();
     }
 }
Beispiel #2
0
        internal static void RegisterPhoenix()
        {
            RuntimeObjectsLoader rol = new RuntimeObjectsLoader();
            rol.AssemblyList.Add(typeof(Core).Assembly);
            rol.Report.Name = "Phoenix " + GetCurrentTimeString();
            reports.Add(rol.Report);
            rol.Run();

            if (rol.Report.AnalyzerErrors.Count > 0) {
                using (ReportViewerDialog viewer = new ReportViewerDialog(reports)) {
                    viewer.SelectedReport = rol.Report;
                    viewer.ShowDialog();
                }
            }
        }