예제 #1
0
 private void HandleCaffeineAmountChangedEvent(object sender, CaffeineAmountChangedEventArgs e)
 {
     CurrentCaffeinemg = e.CaffeineAmount;
     Console.WriteLine("Stuff happened in HandleCaffeineAmountChangedEvent");
     OnRecipientEventTrigger();
 }
예제 #2
0
 protected virtual void OnCaffeineAdded(CaffeineAmountChangedEventArgs e)
 {
     CaffeineAmountChangedEvent?.Invoke(this, e);
 }