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