Exemplo n.º 1
0
 protected override object BuildSettings(DeviceEntry entry)
 {
     DwdSettings settings = new DwdSettings();
     settings.Frequence = (StringValue)entry[DeviceEntry.RecordInterval];
     settings.SerialPort = (StringValue)entry[DeviceEntry.SerialPort];
     
     return settings;
 }
Exemplo n.º 2
0
 public void Apply()
 {
     this.settings = (DwdSettings)this.Apply(new Dictionary<string, string>
     {
         {DeviceEntry.SerialPort, this.settings.SerialPort},
         {DeviceEntry.RecordInterval, this.settings.Frequence.ToString()}
     });
 }
Exemplo n.º 3
0
 public void Apply()
 {
     this.settings = (DwdSettings)this.Apply(new Dictionary <string, string>
     {
         { DeviceEntry.SerialPort, this.settings.SerialPort },
         { DeviceEntry.RecordInterval, this.settings.Frequence.ToString() }
     });
 }
Exemplo n.º 4
0
        protected override object BuildSettings(DeviceEntry entry)
        {
            DwdSettings settings = new DwdSettings();

            settings.Frequence  = (StringValue)entry[DeviceEntry.RecordInterval];
            settings.SerialPort = (StringValue)entry[DeviceEntry.SerialPort];

            return(settings);
        }
Exemplo n.º 5
0
 private void DwdCfgForm_Load(object sender, EventArgs e)
 {
     this.Loaded();
     this.settings = (DwdSettings)this.Reset();
 }
Exemplo n.º 6
0
 public void Cancel()
 {
     this.settings = (DwdSettings)this.Reset();
 }
Exemplo n.º 7
0
 private void DwdCfgForm_Load(object sender, EventArgs e)
 {
     this.Loaded();
     this.settings = (DwdSettings)this.Reset();
 }
Exemplo n.º 8
0
 public void Cancel()
 {
     this.settings = (DwdSettings)this.Reset();
 }