public SerialCommunicationChannel(SerialCommunicationChannelSettings settings)
        {
            Settings = settings;
            Port = new SerialPort(Settings.PortName,
                                  Settings.BaudRate,
                                  Settings.Parity,
                                  Settings.DataBits,
                                  Settings.StopBits);

            Port.Open();
        }
 public SettingsViewModel()
 {
     if (IsInDesignMode)
     {
         // Code runs in Blend --> create design time data.
         _settings = new SerialCommunicationChannelSettings();
     }
     else
     {
         // Code runs "for real": Connect to service, etc...
         _settings = new SerialCommunicationChannelSettings();
     }
 }