Пример #1
0
 void drinkView_BuyClicked(object sender, DrinkIdEventArgs e)
 {
     var h = this.BuyDrinkClicked;
     if( h != null)
     {
         h(this, e);
     }
 }
Пример #2
0
        void drinkView_BuyClicked(object sender, DrinkIdEventArgs e)
        {
            var h = this.BuyDrinkClicked;

            if (h != null)
            {
                h(this, e);
            }
        }
Пример #3
0
 void View_DrinkClicked(object sender, DrinkIdEventArgs e)
 {
     this.Operation.Buy(e.DrinkId);
     this.MessagePresenter.ShowMessage(string.Format("Вы купили {0}", e.DrinkId));
 }