Пример #1
0
 /// <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();
 }
Пример #2
0
        public static void ReceiveWork(object target)
        {
            SerialPortProcessor my = target as SerialPortProcessor;

            my.ReceiveData();
        }