コード例 #1
0
ファイル: HpicCfgForm.cs プロジェクト: oisy/scada
 protected override object BuildSettings(DeviceEntry entry)
 {
     HpicSettings settings = new HpicSettings();
     settings.SerialPort = (StringValue)entry[DeviceEntry.SerialPort];
     settings.Frequence = (StringValue)entry[DeviceEntry.RecordInterval];
     settings.Factor = (StringValue)entry["factor1"];
     settings.AlarmValue = (StringValue)entry[DeviceEntry.Alarm1];
     return settings;
 }
コード例 #2
0
 public void Apply()
 {
     this.settings = (HpicSettings)this.Apply(new Dictionary <string, string>
     {
         { DeviceEntry.SerialPort, this.settings.SerialPort },
         { DeviceEntry.RecordInterval, this.settings.Frequence.ToString() },
         { DeviceEntry.Alarm1, this.settings.AlarmValue.ToString() },
         { "factor1", this.settings.Factor.ToString() }
     });
 }
コード例 #3
0
        protected override object BuildSettings(DeviceEntry entry)
        {
            HpicSettings settings = new HpicSettings();

            settings.SerialPort = (StringValue)entry[DeviceEntry.SerialPort];
            settings.Frequence  = (StringValue)entry[DeviceEntry.RecordInterval];
            settings.Factor     = (StringValue)entry["factor1"];
            settings.AlarmValue = (StringValue)entry[DeviceEntry.Alarm1];
            return(settings);
        }
コード例 #4
0
ファイル: HpicCfgForm.cs プロジェクト: oisy/scada
 public void Apply()
 {
     this.settings = (HpicSettings)this.Apply(new Dictionary<string, string> 
     {
         {DeviceEntry.SerialPort, this.settings.SerialPort},
         {DeviceEntry.RecordInterval, this.settings.Frequence.ToString()},
         {DeviceEntry.Alarm1, this.settings.AlarmValue.ToString()},
         {"factor1", this.settings.Factor.ToString()}
     });
 }
コード例 #5
0
 public void Cancel()
 {
     this.settings = (HpicSettings)this.Reset();
 }
コード例 #6
0
 private void HpicCfgForm_Load(object sender, EventArgs e)
 {
     this.Loaded();
     this.settings = (HpicSettings)this.Reset();
 }
コード例 #7
0
ファイル: HpicCfgForm.cs プロジェクト: oisy/scada
 public void Cancel()
 {
     this.settings = (HpicSettings)this.Reset();
 }
コード例 #8
0
ファイル: HpicCfgForm.cs プロジェクト: oisy/scada
 private void HpicCfgForm_Load(object sender, EventArgs e)
 {
     this.Loaded();
     this.settings = (HpicSettings)this.Reset();
 }