public void CopyFrom(SerialSettings ss) { BaudRate = ss.BaudRate; DataBits = ss.DataBits; Parity = ss.Parity; Handshake = ss.Handshake; StopBits = ss.StopBits; DiscardNull = ss.DiscardNull; DtrEnable = ss.DtrEnable; ReadTimeout = ss.ReadTimeout; ReadBufferSize = ss.ReadBufferSize; WriteTimeout = ss.WriteTimeout; WriteBufferSize = ss.WriteBufferSize; }
public void CopyTo(SerialSettings ss) { ss.BaudRate = BaudRate; ss.DataBits = DataBits; ss.Parity = Parity; ss.Handshake = Handshake; ss.StopBits = StopBits; ss.DiscardNull = DiscardNull; ss.DtrEnable = DtrEnable; ss.ReadTimeout = ReadTimeout; ss.ReadBufferSize = ReadBufferSize; ss.WriteTimeout = WriteTimeout; ss.WriteBufferSize = WriteBufferSize; }
public SerialSettingsForm(SerialSettings settings) { InitializeComponent(); propertyGrid.SelectedObject = settings; }