private void Begin() { Port = new SerialPort(); }
private void Begin() { Port = new SerialPort(PortNumber, SettingsNStuff.BaudRate, Parity.None, 8, StopBits.One); Port.ReceivedBytesThreshold = 3; Port.ReceivedEvent += Port_ReceivedEvent; }
private void PortSelectButton_Click(object sender, System.EventArgs e) { port = new SerialPort((string)PortSelectBox.SelectedItem); port.Open(); port.BaudRate = 38400; port.Parity = OpenNETCF.IO.Ports.Parity.None; port.StopBits = OpenNETCF.IO.Ports.StopBits.One; }