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; }
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() } }); }
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); }
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()} }); }
public void Cancel() { this.settings = (HpicSettings)this.Reset(); }
private void HpicCfgForm_Load(object sender, EventArgs e) { this.Loaded(); this.settings = (HpicSettings)this.Reset(); }