Esempio n. 1
0
        private void HandleTimerCallback(object state)
        {
            TimerNotificationInfo info  = (TimerNotificationInfo)state;
            TimerNotification     notif = new TimerNotification(info.Type, this, -1, info.Message, info.UserData, info.NotifificationId);

            SendNotification(notif);
            if (info.NbOccurences == 0)
            {
                _notifications.Remove(info.NotifificationId);
            }
        }
Esempio n. 2
0
 private void HandleTimerCallback(object state)
 {
     TimerNotificationInfo info = (TimerNotificationInfo) state;
      TimerNotification notif = new TimerNotification(info.Type, this, -1, info.Message, info.UserData, info.NotifificationId);
      SendNotification(notif);
      if (info.NbOccurences == 0)
      {
     _notifications.Remove(info.NotifificationId);
      }
 }