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.
51 lines
907 B
51 lines
907 B
3 years ago
|
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)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
}
|