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