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; }
private void NotifyCustomer(object sender, CustomerNotificationArgs e) { int x = 10; }