Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Onfinger event fix #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions BioMetrixCore/Master.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions BioMetrixCore/Master.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Drawing;
using System.Windows.Forms;
using System.Collections.Generic;
using zkemkeeper;

namespace BioMetrixCore
{
Expand Down Expand Up @@ -80,6 +81,11 @@ private void RaiseDeviceEvent(object sender, string actionType)

}

private void zkemClient_OnFinger()
{
/* control on finger event here */
}


private void btnConnect_Click(object sender, EventArgs e)
{
Expand Down Expand Up @@ -116,8 +122,12 @@ private void btnConnect_Click(object sender, EventArgs e)
objZkeeper = new ZkemClient(RaiseDeviceEvent);
IsDeviceConnected = objZkeeper.Connect_Net(ipAddress, portNumber);

/* once device connection has been established, the events can be registered using line 128-129 */
if (IsDeviceConnected)
{
if (this.objZkeeper.objCZKEM.RegEvent(1, 65535))
objZkeeper.objCZKEM.OnFinger += new _IZKEMEvents_OnFingerEventHandler(zkemClient_OnFinger);

string deviceInfo = manipulator.FetchDeviceInfo(objZkeeper, int.Parse(tbxMachineNumber.Text.Trim()));
lblDeviceInfo.Text = deviceInfo;
}
Expand Down Expand Up @@ -354,6 +364,9 @@ private void tbxPort_TextChanged(object sender, EventArgs e)
private void tbxMachineNumber_TextChanged(object sender, EventArgs e)
{ UniversalStatic.ValidateInteger(tbxMachineNumber); }

private void Master_Load(object sender, EventArgs e)
{

}
}
}
2 changes: 1 addition & 1 deletion BioMetrixCore/Utilities/ZkemClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public ZkemClient(Action<object, string> RaiseDeviceEvent)
{ this.RaiseDeviceEvent = RaiseDeviceEvent; }


CZKEM objCZKEM = new CZKEM();
internal CZKEM objCZKEM = new CZKEM();

#region 'What we will be using'

Expand Down
Binary file modified BioMetrixCore/bin/Debug/BioMetrixCore.exe
Binary file not shown.
Binary file modified BioMetrixCore/bin/Debug/BioMetrixCore.pdb
Binary file not shown.
13 changes: 13 additions & 0 deletions BioMetrixCore/obj/Debug/BioMetrixCore.csproj.FileListAbsolute.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,16 @@ D:\Zktech\ZKTeco Using C#\BioMatrix\BioMetrixCore\obj\Debug\BioMetrixCore.Proper
D:\Zktech\ZKTeco Using C#\BioMatrix\BioMetrixCore\obj\Debug\BioMetrixCore.csproj.GenerateResource.Cache
D:\Zktech\ZKTeco Using C#\BioMatrix\BioMetrixCore\obj\Debug\BioMetrixCore.exe
D:\Zktech\ZKTeco Using C#\BioMatrix\BioMetrixCore\obj\Debug\BioMetrixCore.pdb
C:\GitHub\BioMetrix\BioMetrixCore\bin\Debug\BioMetrixCore.exe.config
C:\GitHub\BioMetrix\BioMetrixCore\bin\Debug\BioMetrixCore.exe
C:\GitHub\BioMetrix\BioMetrixCore\bin\Debug\BioMetrixCore.pdb
C:\GitHub\BioMetrix\BioMetrixCore\obj\Debug\BioMetrixCore.csproj.AssemblyReference.cache
C:\GitHub\BioMetrix\BioMetrixCore\obj\Debug\Interop.zkemkeeper.dll
C:\GitHub\BioMetrix\BioMetrixCore\obj\Debug\BioMetrixCore.csproj.ResolveComReference.cache
C:\GitHub\BioMetrix\BioMetrixCore\obj\Debug\BioMetrixCore.DataEmpty.resources
C:\GitHub\BioMetrix\BioMetrixCore\obj\Debug\BioMetrixCore.Master.resources
C:\GitHub\BioMetrix\BioMetrixCore\obj\Debug\BioMetrixCore.Properties.Resources.resources
C:\GitHub\BioMetrix\BioMetrixCore\obj\Debug\BioMetrixCore.csproj.GenerateResource.cache
C:\GitHub\BioMetrix\BioMetrixCore\obj\Debug\BioMetrixCore.csproj.CoreCompileInputs.cache
C:\GitHub\BioMetrix\BioMetrixCore\obj\Debug\BioMetrixCore.exe
C:\GitHub\BioMetrix\BioMetrixCore\obj\Debug\BioMetrixCore.pdb
Binary file not shown.
Binary file not shown.
Binary file modified BioMetrixCore/obj/Debug/BioMetrixCore.exe
Binary file not shown.
Binary file modified BioMetrixCore/obj/Debug/BioMetrixCore.pdb
Binary file not shown.
Binary file modified BioMetrixCore/obj/Debug/DesignTimeResolveAssemblyReferences.cache
Binary file not shown.
Binary file not shown.
Binary file modified BioMetrixCore/obj/Debug/Interop.zkemkeeper.dll
Binary file not shown.