Example #1
0
 private static void InitClass()
 {
     modBus             = new MRW_ModBus();
     log                = new WriteLog();
     setSrcVcs          = new SetServiceCounter();
     dicCounter         = new Dictionary <string, Counter>();
     dicService         = new Dictionary <string, Service>();
     dicCounterKeyboard = new Dictionary <int, CounterAndKeyboard>();
 }
 public void InitSerialSocketController(string comName)
 {
     modBus       = new MRW_ModBus();
     serialPort   = new MRW_SerialPort(comName);
     serialRecive = new SerialReciveController();
     //event recive
     serialPort.DataReceived   += serialRecive.Recive;
     serialRecive.DataReceived += dataRecive;
 }