protected override object BuildSettings(DeviceEntry entry) { MdsSettings settings = new MdsSettings(); settings.Factor = (StringValue)entry["factor1"]; settings.Frequence = (StringValue)entry[DeviceEntry.RecordInterval]; return settings; }
public void Apply() { this.settings = (MdsSettings)this.Apply(new Dictionary<string, string> { {"factor1", this.settings.Factor.ToString()}, {DeviceEntry.RecordInterval, this.settings.Frequence.ToString()} }); }
protected override object BuildSettings(DeviceEntry entry) { MdsSettings settings = new MdsSettings(); settings.Factor = (StringValue)entry["factor1"]; settings.Frequence = (StringValue)entry[DeviceEntry.RecordInterval]; return(settings); }
private void MdsCfgForm_Load(object sender, EventArgs e) { this.Loaded(); this.settings = (MdsSettings)this.Reset(); }
public void Cancel() { this.settings = (MdsSettings)this.Reset(); }