You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

50 lines
907 B

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;
}
}
/// <summary>
/// 打开扫描头
/// </summary>
public virtual void Open()
{
if (Enabled)
{
}
}
/// <summary>
/// 关闭扫描头
/// </summary>
public virtual void Close()
{
if (Enabled)
{
}
}
}
}