/// <summary>
/// Confirm and close the scanner
/// </summary>
private void close()
{
if (EvtDone != null)
{
EvtDone.BeginInvoke(false, null, null);
}
else
{
if (DialogUtils.ConfirmScanner(PanelManager.Instance.GetCurrentForm(), R.GetString("CloseQ")))
{
Windows.CloseForm(this);
}
}
}