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