Instruction Manual

HDC-4x Series SDK (Windows)
Page 33
Step 3: Declare variable to control MB86H55 as below:
Mb86H55reb mb86h55reb = new Mb86H55reb;
Step 4: Add the following event handler:
protected override void WndProc(ref Message m)
{
DoMb86h55Events(ref m);
base.WndProc(ref m);
}
private void DoMb86h55Events(ref Message m)
{
Mb86H55reb.AsyncEventResult result;
string comment;
result = mb86h55reb.OnMsg(ref m, out comment);
UpdateScreenAfterEvents(result, comment);
}
Step 5: In the function UpdateScreenAfterEvents(),other control functions can be added
according to the purpose. For example: Error message report function.
private void UpdateScreenAfterEvents(Mb86H55reb.AsyncEventResult result,
string comment)
{
switch (result)
{
case Mb86H55reb.AsyncEventResult.OperationComplete:
break;
case Mb86H55reb.AsyncEventResult.OperationCompleteStop:
mb86h55reb.Reset();
break;
case Mb86H55reb.AsyncEventResult.OperationCompleteAutoStop: