public void StartMonitoring() { if (OutputPath == null) { throw new InvalidOperationException("OutputPath is not set."); } _monitor.Start(OutputPath); Toaster.ToastInfo(Name, String.Format("Monitoring {0} path", OutputPath)); }
private void OnMonitorOnFilePrintingFinished(string filePath) { Toaster.ToastInfo(Name, String.Format("PRINTING FINISHED\n{0}", filePath)); // load content from filePath byte[] content = new byte[1]; foreach (var a in Actions) { if (a is PdfAction) { ((PdfAction)a).PdfBytes = content; } a.Execute(); } }
private void OnMonitorOnFilePrintingStarted(string filePath) { Toaster.ToastInfo(Name, String.Format("PRINTING STARTED\n{0}", filePath)); }