public static ComPortListener getInstance() { lock (syncRoot) { if (instance == null) { instance = new ComPortListener(); DBController.getInstance(); } } return(instance); }
private DBController() { //Subscribe to the event so we know when a new scan happend ComPortListener.getInstance().newScan += DBController_RunStoredProcedure; }
private CheckIn() { //Subscribe to ComPortListener's newScan so we know when there have been a scan ComPortListener.getInstance().newScan += OnNewInput; }