Beispiel #1
0
 public void Update(IStore sender, CustomerNotificationArgs args)
 {
     if (args.Item.Type == Interest)
     {
         if (args.Item.Price <= Budget)
         {
             Budget -= args.Item.Price;
             sender.Buy(this, args.Item);
         }
     }
 }
 private void MyMethod(object sender, CustomerNotificationArgs e)
 {
     int x = 10;
 }
Beispiel #3
0
 private void NotifyCustomer(object sender, CustomerNotificationArgs e)
 {
     int x = 10;
 }