static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); ArduinoSerialPort m_arduino = new ArduinoSerialPort(); Application.Run(new MainForm(m_arduino)); }
public MainForm(ArduinoSerialPort m_arduinoIn) { m_arduino = m_arduinoIn; InitializeComponent(); updateDataThread = new Thread(UpdateData); m_continue = true; updateDataThread.Start(); }