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

            settings.Factor    = (StringValue)entry["factor1"];
            settings.Frequence = (StringValue)entry[DeviceEntry.RecordInterval];
            return(settings);
        }
Example #4
0
 private void MdsCfgForm_Load(object sender, EventArgs e)
 {
     this.Loaded();
     this.settings = (MdsSettings)this.Reset();
 }
Example #5
0
 public void Cancel()
 {
     this.settings = (MdsSettings)this.Reset();
 }