public void CreateTestPage() { IOidCode oidCode = new TiptoiOidCode(); var printerTestPageFile = TestFile("printer-test.html"); OidSvgWriter.CreatePrinterTestPage(printerTestPageFile); Process.Start(printerTestPageFile); }
private void printerTestPageToolStripMenuItem_Click(object sender, EventArgs e) { Task.Factory.StartNew(() => { var testPage = Path.Combine(About.LocalApplicationDataDirectory, "tiptoi-printer-test.html"); PathUtil.EnsureParentDirectoryExists(testPage); OidSvgWriter.CreatePrinterTestPage(testPage); Process.Start(testPage); }, TaskCreationOptions.LongRunning); }