/// <summary> /// Handles the Shown event of the Form1 control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> private void Form1_Shown(object sender, EventArgs e) { xSerialDevice = new SerialPortProcessor(); stringListPort = new List <string>(); xConnected = false; xSerialDevice.PortName = ""; Init_PortSetting(); }
public static void ReceiveWork(object target) { SerialPortProcessor my = target as SerialPortProcessor; my.ReceiveData(); }