Esempio n. 1
0
 protected virtual void OnCashpointMsgReceived(CashpointStatusMessageReceivedEventArgs e)
 {
     if (!servers.ContainsKey(e.IpAddress))
         servers.Add(e.IpAddress, DateTime.Now);
     if (CashpointMsgReceived != null && e.MessageType == CashpointMessageType.Update)
         CashpointMsgReceived(this, e);
 }
Esempio n. 2
0
 protected virtual void OnCashpointDisconnected(CashpointStatusMessageReceivedEventArgs e)
 {
     servers.Remove(e.IpAddress);
     if (CashpointDisconnected != null)
         CashpointDisconnected(this, e);
 }