Пример #1
0
 private void Board()
 {
     lbCostWater.Text    = drinksWater.GetCost().ToString();
     lbCostEspresso.Text = drinksEspresso.GetCost().ToString();
 }
Пример #2
0
 private void chSugar_CheckedChanged(object sender, EventArgs e)
 {
     MessageBox.Show(espressoSugar.GetDesctiption() + " : " + espressoSugar.GetCost().ToString() + " руб ");
     lbTotal.Text = espressoSugar.GetDesctiption() + " : " + espressoSugar.GetCost().ToString() + " руб ";
 }
Пример #3
0
 public override double GetCost()
 {
     return(_drinks.GetCost() + 10);
 }