Example #1
0
 protected override object BuildSettings(DeviceEntry entry)
 {
     HpicSettings settings = new HpicSettings();
     settings.SerialPort = (StringValue)entry[DeviceEntry.SerialPort];
     settings.Frequence = (StringValue)entry[DeviceEntry.RecordInterval];
     settings.Factor = (StringValue)entry["factor1"];
     settings.AlarmValue = (StringValue)entry[DeviceEntry.Alarm1];
     return settings;
 }
Example #2
0
 public void Apply()
 {
     this.settings = (HpicSettings)this.Apply(new Dictionary <string, string>
     {
         { DeviceEntry.SerialPort, this.settings.SerialPort },
         { DeviceEntry.RecordInterval, this.settings.Frequence.ToString() },
         { DeviceEntry.Alarm1, this.settings.AlarmValue.ToString() },
         { "factor1", this.settings.Factor.ToString() }
     });
 }
Example #3
0
        protected override object BuildSettings(DeviceEntry entry)
        {
            HpicSettings settings = new HpicSettings();

            settings.SerialPort = (StringValue)entry[DeviceEntry.SerialPort];
            settings.Frequence  = (StringValue)entry[DeviceEntry.RecordInterval];
            settings.Factor     = (StringValue)entry["factor1"];
            settings.AlarmValue = (StringValue)entry[DeviceEntry.Alarm1];
            return(settings);
        }
Example #4
0
 public void Apply()
 {
     this.settings = (HpicSettings)this.Apply(new Dictionary<string, string> 
     {
         {DeviceEntry.SerialPort, this.settings.SerialPort},
         {DeviceEntry.RecordInterval, this.settings.Frequence.ToString()},
         {DeviceEntry.Alarm1, this.settings.AlarmValue.ToString()},
         {"factor1", this.settings.Factor.ToString()}
     });
 }
Example #5
0
 public void Cancel()
 {
     this.settings = (HpicSettings)this.Reset();
 }
Example #6
0
 private void HpicCfgForm_Load(object sender, EventArgs e)
 {
     this.Loaded();
     this.settings = (HpicSettings)this.Reset();
 }
Example #7
0
 public void Cancel()
 {
     this.settings = (HpicSettings)this.Reset();
 }
Example #8
0
 private void HpicCfgForm_Load(object sender, EventArgs e)
 {
     this.Loaded();
     this.settings = (HpicSettings)this.Reset();
 }