public static ScannerGunHelper GetInstance(IScannerGunInterface gunInterface) { mInterface = gunInterface; if (mHelper == null) { hook = new ScannerGunHook(); mHelper = new ScannerGunHelper(); } return(mHelper); }
public static void Close() { if (hook != null) { hook.Stop(); } if (mInterface != null) { mInterface = null; } if (mHelper != null) { mHelper = null; } }