示例#1
0
        public virtual void OnRingStatusChange(RingStatus status)
        {
            if (RingStatusChanged == null)
            {
                return;
            }
            RingEventArgs arg = new RingEventArgs(status);

            RingStatusChanged(this, arg);
        }
示例#2
0
 /// <summary>
 /// 电铃开关控制
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void rtuControl1_RingStatusChanged(object sender, RingEventArgs e)
 {
     if (_measApp != null && _measApp.Rtu != null)
     {
         switch (e.Value)
         {
             case RingStatus.Ring:
                 _measApp.Rtu.OpenRing();
                 break;
             case RingStatus.Stop:
                 _measApp.Rtu.CloseRing();
                 break;
         }
     }
 }
示例#3
0
 public virtual void OnRingStatusChange(RingStatus status)
 {
     if (RingStatusChanged == null) return;
     RingEventArgs arg = new RingEventArgs(status);
     RingStatusChanged(this, arg);
 }