Пример #1
0
 public static NotificationSlave NotificationSlaveInstance()
 {
     if (instance == null)
     {
         instance = new NotificationSlave();
     }
     return(instance);
 }
Пример #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;
        }
Пример #3
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;
            notificationSlave.ResendLastNotificationRequested += NotificationSlave_ResendLastNotificationRequested;
        }