public LogFileViewer(string filename) { InitializeComponent(); controller = new ViewController.ViewController(); webBrowser1.ScriptErrorsSuppressed = false; webBrowser1.IsWebBrowserContextMenuEnabled = false; webBrowser1.WebBrowserShortcutsEnabled = false; try { string transform_file = controller.LoadReplayLog(filename); if (transform_file != string.Empty) { StatusMessageFileAttributes(filename); XSLTransform = new Uri(transform_file); webBrowser1.Navigate(XSLTransform); tsPrint.Enabled = true; tsReportSelector.Enabled = true; tsReportSelector.SelectedIndex = 0; } StartedWithArguement = true; StatusMessage("Ready."); } catch (System.IO.IOException exc) { MessageBox.Show(exc.Message, "Unable to open logfile", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } }
public ExportDialog(ViewController.ViewController controller, String export_type) { InitializeComponent(); this.controller = controller; this.export_type = export_type; checkBox1.Checked = controller.SaveWithColumnHeaders; if (controller.reportTransforms[export_type].HasCSVHeader) { checkBox1.Enabled = true; } else { checkBox1.Enabled = false; } }
public LogFileViewer() { InitializeComponent(); controller = new ViewController.ViewController(); controller.LoadReportTransforms(); webBrowser1.ScriptErrorsSuppressed = false; webBrowser1.IsWebBrowserContextMenuEnabled = false; webBrowser1.WebBrowserShortcutsEnabled = false; foreach (String report in controller.reportTransforms.Keys) { tsReportSelector.Items.Add(report); } StatusMessage("Ready."); }