class SurroundingClass
{
private var IsDeviceConnected = false;
private CZKEM objZkeeper = new CZKEM();
private int iMachineNumber;
private void ConnectBiometric()
{
IsDeviceConnected = objZkeeper.Connect_Net(BiometricIP.Text, BiometricPORT.Text);
int idwErrorCode;
if (IsDeviceConnected == true)
{
BiometricStatus.Text = "Current State:Connected";
iMachineNumber = BiometricID.Text;
objZkeeper.RegEvent(iMachineNumber, 65535);
BiometricStatus.ForeColor = Color.Blue;
}
else
{
objZkeeper.GetLastError(idwErrorCode);
BiometricStatus.ForeColor = Color.Red;
BiometricStatus.Text = ("Unable to connect the device,ErrorCode=" + idwErrorCode);
}
}
}
class SurroundingClass
{
private var IsDeviceConnected = false;
private CZKEM objZkeeper = new CZKEM();
private int iMachineNumber;
private void ConnectBiometric()
{
IsDeviceConnected = objZkeeper.Connect_Net(BiometricIP.Text, BiometricPORT.Text);
int idwErrorCode;
if (IsDeviceConnected == true)
{
BiometricStatus.Text = "Current State:Connected";
iMachineNumber = BiometricID.Text;
objZkeeper.RegEvent(iMachineNumber, 65535);
BiometricStatus.ForeColor = Color.Blue;
}
else
{
objZkeeper.GetLastError(idwErrorCode);
BiometricStatus.ForeColor = Color.Red;
BiometricStatus.Text = ("Unable to connect the device,ErrorCode=" + idwErrorCode);
}
}
}