Ejemplo n.º 1
0
        public SerialSettings Clone()
        {
            var clone = new SerialSettings();

            CopyTo(clone);
            return(clone);
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 3
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;
 }
Ejemplo n.º 4
0
 public SerialSettingsForm(SerialSettings settings)
 {
     InitializeComponent();
     propertyGrid.SelectedObject = settings;
 }