예제 #1
0
 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;
 }
예제 #2
0
 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;
 }
예제 #3
0
 public SerialSettingsForm(SerialSettings settings)
 {
     InitializeComponent();
     propertyGrid.SelectedObject = settings;
 }