Пример #1
0
 /// <summary>
 /// 设置温控器启动加热或停止加热时调用
 /// </summary>
 /// <param name="content"></param>
 /// <param name="receiver"></param>
 /// <param name="enable"></param>
 public HeaterMessage(HeaterMsg content, HeaterController receiver, bool enable, int chanelNo)
 {
     this.content  = content;
     this.receiver = receiver;
     this.enable   = enable;
     this.chanelNo = chanelNo;
 }
Пример #2
0
 /// <summary>
 /// 写入时调用
 /// </summary>
 /// <param name="content"></param>
 /// <param name="value"></param>
 /// <param name="receiver"></param>
 public HeaterMessage(HeaterMsg content, double value, int chanelNo, HeaterController receiver)
 {
     this.content  = content;
     this.receiver = receiver;
     this.Value    = value;
     this.chanelNo = chanelNo;
 }
Пример #3
0
 public void Fire(HeaterMsg heaterMsg, double value, int chanelNo)
 {
     this.Fire(new HeaterMessage(heaterMsg, value, chanelNo, this));
 }