// socketComm commsck; private void VKApp_Load(object sender, EventArgs e) { try { LoadCamera(); CmmModule = new Commmodule(); CmmModule.initialize(); CmmModule.ReceivedMessage += ReceivedMessage; Watchdog = new System.Windows.Forms.Timer(); Watchdog.Tick += Watchdog_Tick; Watchdog.Interval = 400; Watchdog.Start(); // CmmModule.SendData(""); // CmmModule.readData(); this.WindowState = FormWindowState.Minimized; CmmModule.ReadCommFile(); commtoMCC.ReceivedMessage += ReceivedMessage; commtoMCC.initialize(); /// // commsck = new socketComm(); //commsck.initialize(); } catch (Exception ex) { LogMessage(ex.Message); } }
// socketComm commsck; private void VKApp_Load(object sender, EventArgs e) { try { LoadCamera(); CmmModule = new Commmodule(); CmmModule.initialize(); CmmModule.ReceivedMessage += ReceivedMessage; Watchdog = new System.Windows.Forms.Timer(); Watchdog.Tick += Watchdog_Tick; Watchdog.Interval = 400; Watchdog.Start(); this.WindowState = FormWindowState.Minimized; CmmModule.ReadCommFile(); commtoMCC.ReceivedMessage += ReceivedMessage; commtoMCC.initialize(); LoadSerialdeviceinfo(); DisableSimulationMode(false); } catch (Exception ex) { LogMessage(ex.Message); } }
void ReadFile() { CmmModule.ReadCommFile(); }