Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

buttonEventsee list of posible button events

 

Sample

Code Block
languagec#
titleC#
linenumberstrue
collapsetrue
//  Event for DeviceButtons
SigDev.OnDeviceButtonEx += new AxStepOverSignatureDevice1.IStepOverSignatureDeviceEvents_OnDeviceButtonExEventHandler(SigDev_OnDeviceButtonEx);
 
private void SigDev_OnDeviceButtonEx(object sender, AxStepOverSignatureDevice1.IStepOverSignatureDeviceEvents_OnDeviceButtonExEvent e)
{
	//  forward Event to SignAPI so it can response in DocumentViewingMode
	SignAPIv4.OnDeviceLCDButtonHandler(e.buttonEvent);

	int ID = Convert.ToInt32(e.buttonEvent >> 16);
	int Mode = Convert.ToInt32(e.buttonEvent & 0xFFFF);

	//  Check buttonID
	switch (ID)
	{
		case 206:
			//  OK Button, you can confirm Signature
			throw new NotImplementedException();
			break;

		case 207:
			//  OK Repeat, you can restart signing
			throw new NotImplementedException();
			break;

		case 208:
			//  OK Abort, you can abort signing
			throw new NotImplementedException();
			break;
	}
}