예제 #1
0
 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;
 }
예제 #2
0
 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 },
     });
 }
예제 #3
0
파일: NaICfgForm.cs 프로젝트: oisy/scada
 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()}
     });
 }
예제 #4
0
 private void NaICfgForm_Load(object sender, EventArgs e)
 {
     this.Loaded();
     this.settings = (NaISettings)this.Reset();
 }
예제 #5
0
 public void Cancel()
 {
     this.settings = (NaISettings)this.Reset();
 }