Пример #1
0
 // A method that removes a subscriber method from the Promotions event
 // It also requires a reason so it can be saved in ZalbiIPoplaki as feedback
 // This subscriber expects to not get any promotions when the market sends some in the future
 public void UnsubscribeForPromotions(PromotionSender unsubscriber, string reason)
 {
     Promotions -= unsubscriber;
     ZalbiIPoplaki.Add(reason);
 }
Пример #2
0
 public void UnsubscribeForInfo(InformationSender subscriber, string reason)
 {
     InformationHandler -= subscriber;
     ZalbiIPoplaki.Add(reason);
 }
Пример #3
0
 public void UnsubscribeForPromotions(PromotionSender suscriber, string reason)
 {
     PromotionsHandler -= suscriber;
     ZalbiIPoplaki.Add(reason);
 }
Пример #4
0
 public void DisplayZalbiIPoplaki()
 {
     Console.WriteLine($"{Name} ZALBI I POPLAKI:");
     ZalbiIPoplaki.ForEach(Console.WriteLine);
 }
Пример #5
0
 public void UnsubscribeForLocation(NewLocationSender subscriber, string reason)
 {
     NewLocationHandler -= subscriber;
     ZalbiIPoplaki.Add(reason);
 }