using System; using System.Collections.Generic; using System.Text; using PDAForm.Comm; namespace PDAForm.SDK { public class ScanerBase { public delegate void MyEventHandler(string ScanData); //委托 //public event MyEventHandler onData; //事件 public bool Enabled = true; //是否允许使用 public ScanerBase() { if (MyAppconfig.GetValue("PDA_Run") == "False") { Enabled = false; } } /// /// 打开扫描头 /// public virtual void Open() { if (Enabled) { } } /// /// 关闭扫描头 /// public virtual void Close() { if (Enabled) { } } } }