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