示例#1
0
文件: DwdCfgForm.cs 项目: oisy/scada
 protected override object BuildSettings(DeviceEntry entry)
 {
     DwdSettings settings = new DwdSettings();
     settings.Frequence = (StringValue)entry[DeviceEntry.RecordInterval];
     settings.SerialPort = (StringValue)entry[DeviceEntry.SerialPort];
     
     return settings;
 }
示例#2
0
文件: DwdCfgForm.cs 项目: oisy/scada
 public void Apply()
 {
     this.settings = (DwdSettings)this.Apply(new Dictionary<string, string>
     {
         {DeviceEntry.SerialPort, this.settings.SerialPort},
         {DeviceEntry.RecordInterval, this.settings.Frequence.ToString()}
     });
 }
示例#3
0
 public void Apply()
 {
     this.settings = (DwdSettings)this.Apply(new Dictionary <string, string>
     {
         { DeviceEntry.SerialPort, this.settings.SerialPort },
         { DeviceEntry.RecordInterval, this.settings.Frequence.ToString() }
     });
 }
示例#4
0
        protected override object BuildSettings(DeviceEntry entry)
        {
            DwdSettings settings = new DwdSettings();

            settings.Frequence  = (StringValue)entry[DeviceEntry.RecordInterval];
            settings.SerialPort = (StringValue)entry[DeviceEntry.SerialPort];

            return(settings);
        }
示例#5
0
文件: DwdCfgForm.cs 项目: oisy/scada
 private void DwdCfgForm_Load(object sender, EventArgs e)
 {
     this.Loaded();
     this.settings = (DwdSettings)this.Reset();
 }
示例#6
0
文件: DwdCfgForm.cs 项目: oisy/scada
 public void Cancel()
 {
     this.settings = (DwdSettings)this.Reset();
 }
示例#7
0
 private void DwdCfgForm_Load(object sender, EventArgs e)
 {
     this.Loaded();
     this.settings = (DwdSettings)this.Reset();
 }
示例#8
0
 public void Cancel()
 {
     this.settings = (DwdSettings)this.Reset();
 }