예제 #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();
 }