Пример #1
0
 public void Notify(Alert alert)
 {
     foreach (BaseMessageSystem o in m_observers)
     {
         o.sendMessage(alert);
     }
 }
Пример #2
0
 public override void SendAlert(String alertMess, Alert.LEVEL level)
 {
     if (null != m_ns)
     {
         Alert alert = new Alert("From Bed Unit " + m_bedID + "\n" + alertMess, level);
         m_ns.Notify(alert);
     }
     m_alarm = true;
 }
Пример #3
0
 public override void SendAlert(String alertMess, Alert.LEVEL level)
 {
     if (null != m_comp)
     {
         m_comp.SendAlert(alertMess, level);
     }
 }
Пример #4
0
 public void alert(Alert alert)
 {
     Notify(alert);
 }
Пример #5
0
 public override void sendMessage(Alert alert)
 {
     String message = "ALERT RECIEVED:" + "\n" + alert.message + "\n LEVEL : " + alert.level;
     if (null != m_ui)
         m_ui.addMessage(message);
 }
Пример #6
0
 public override void sendMessage(Alert alert)
 {
     String message = "MAIL TO:" + m_emailAdd + "\n" + alert.message + "\n LEVEL : " + alert.level;
     if (null != m_ui)
         m_ui.addMessage(message);
 }
Пример #7
0
 public abstract void sendMessage(Alert alert);
Пример #8
0
 public override void sendMessage(Alert alert)
 {
     String message = "PAGEING " + m_pagerNum + "\n" + alert.message + "\n LEVEL : " + alert.level;
     if (null != m_ui)
         m_ui.addMessage(message);
 }
Пример #9
0
 public override void sendMessage(Alert alert)
 {
     String message = "SMS TO:" + m_phoneNum + "\n" + alert.message + "\n LEVEL : " + alert.level;
     if (null != m_ui)
         m_ui.addMessage(message);
 }
Пример #10
0
 public abstract void SendAlert(String alertMess, Alert.LEVEL level);