using slnPrmcScan.Common; using AxPRAPI_OCXLib; using AxGXIMAGE_OCXLib; using GXIMAGE_OCXLib; using PRAPI_OCXLib; using KbUserActivityMonitor; using System.Configuration; using System.IO; namespace slnPrmcScan { public delegate void _TestDocEventEventHandler(object sender, _DPrApiOCXEvents_TestDocEventEvent e); public partial class prmcScan : Form { public event _TestDocEventEventHandler TestDocEventasa; private void prmcScan_Load(object sender, EventArgs e) { this.TestDocEventasa += new _TestDocEventEventHandler(prmcScan_TestDocEventasa); } public void prmcScan_TestDocEventasa(object sender, _DPrApiOCXEvents_TestDocEventEvent evt) { switch (evt.status) { case PrmcType.PR_TD_OUT: //prmcScan.ActiveForm.Text = "No document ..."; PrApi.SetStatusLed(0xff, (System.Int32)PrmcType.PR_SLC_GREEN); break; case PrmcType.PR_TD_MOVE: //prmcScan.ActiveForm.Text = "Document is moving ..."; PrApi.SetStatusLed(0xff, (System.Int32)PrmcType.PR_SLC_ANY); break; case PrmcType.PR_TD_NOMOVE: //prmcScan.ActiveForm.Text = "Document stopped ..."; PrApi.SetStatusLed(0xff, (System.Int32)PrmcType.PR_SLC_GREEN); break; case PrmcType.PR_TD_IN: FunctionStart("Capture Start"); //PrApi.FreerunMode = PrmcType.PR_FRMODE_UVLEDWARMING; //prmcScan.ActiveForm.Text = "Ready to capture ..."; //PrApi.Capture(); PrApi.SetStatusLed(0xff, PrmcType.PR_LIGHT_RED); PrApi.SetStatusLed(0xff, PrmcType.PR_SLC_GREEN); break; default: //prmcScan.ActiveForm.Text = "Status: " + (e.status).ToString(); break; } } }
|