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