public static ComPortListener getInstance() { lock (syncRoot) { if (instance == null) { instance = new ComPortListener(); DBController.getInstance(); } } return(instance); }
private DataTableLog() { //Subcribe to the event so we know when a new scan have been made DBController.getInstance().NewRequest += DataTableLog_NewRequest; }
private void Dbcallaction(object obj) { //Tells the DBController to run this method DBController.getInstance().DbLog(); }