Beispiel #1
0
 public static NotificationSlave NotificationSlaveInstance()
 {
     if (instance == null)
     {
         instance = new NotificationSlave();
     }
     return(instance);
 }
Beispiel #2
0
        //Subscribe to events by Several publishers
        private void SubscribeToEvents()
        {
            NotificationSlave notificationSlave = NotificationSlave.NotificationSlaveInstance();

            notificationSlave.AllNotificationsCancelled     += NotificationSlave_AllNotificationsCancelled;
            notificationSlave.NotificationCancelled         += NotificationSlave_NotificationCancelled;
            notificationSlave.NotificationCancelledLollipop += NotificationSlave_NotificationCancelledLollipop;
        }
        //Subscribe to events by Several publishers
        private void SubscribeToEvents()
        {
            NotificationSlave notificationSlave = NotificationSlave.NotificationSlaveInstance();

            notificationSlave.AllNotificationsCancelled       += NotificationSlave_AllNotificationsCancelled;
            notificationSlave.NotificationCancelled           += NotificationSlave_NotificationCancelled;
            notificationSlave.NotificationCancelledLollipop   += NotificationSlave_NotificationCancelledLollipop;
            notificationSlave.ResendLastNotificationRequested += NotificationSlave_ResendLastNotificationRequested;
        }