// 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); } }
public MainWindow() { InitializeComponent(); commtoDAQ.ReceivedMessage += ReceivedMessage; commtoDAQ.initialize(); this.WindowState = WindowState.Maximized; double W = System.Windows.SystemParameters.PrimaryScreenWidth; double H = System.Windows.SystemParameters.PrimaryScreenHeight; //FVchart.Height = 300; //300; //300; //700; //FVchart.Width = 390;// 390; //390; //200;// 400; FVchart.Height = 300; //300; //300; //700; FVchart.Width = 390; // 390; //390; //200;// 400; VTchart.Width = 400; VTchart.Height = 200; this.Topmost = true; // this.Hide(); // FVchart.ChartColor = Color.re this.WindowState = WindowState.Normal; this.WindowState = WindowState.Minimized; }
// 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); } }