public static NotificationSlave NotificationSlaveInstance() { if (instance == null) { instance = new NotificationSlave(); } return(instance); }
//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; }