private void chSugar_CheckedChanged(object sender, EventArgs e) { MessageBox.Show(espressoSugar.GetDesctiption() + " : " + espressoSugar.GetCost().ToString() + " руб "); lbTotal.Text = espressoSugar.GetDesctiption() + " : " + espressoSugar.GetCost().ToString() + " руб "; }
private void btnWater_Click(object sender, EventArgs e) { lbTotal.Text = drinksWater.GetDesctiption() + " : " + drinksWater.GetCost().ToString() + " руб "; }
private void btnCoffe_Click(object sender, EventArgs e) { lbTotal.Text = drinksEspresso.GetDesctiption() + " : " + drinksEspresso.GetCost().ToString() + " руб "; }
public addSugarPrice(DrinksBase drinks) { _drinks = drinks; Desctiption = _drinks.GetDesctiption() + " + " + " Сахар "; }