Beispiel #1
0
        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));
        }
Beispiel #2
0
        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();
            }
        }
Beispiel #3
0
 private void OnMonitorOnFilePrintingStarted(string filePath)
 {
     Toaster.ToastInfo(Name, String.Format("PRINTING STARTED\n{0}", filePath));
 }