public void CheckBoxController() { if (FantaTBox.Text == "0") { } else { count = 1; QuittungRichBox.AppendText(" Fanta \t\t\t\t" + FantaTBox.Text + Environment.NewLine); } if (ColaTBox.Text == "0") { } else { QuittungRichBox.AppendText(" Cola \t\t\t\t" + ColaTBox.Text + Environment.NewLine); } if (BierTBox.Text == "0") { } else { QuittungRichBox.AppendText(" Bier \t\t\t\t" + Convert.ToInt16(BierTBox.Text) + Environment.NewLine); } }
private void QuittungBTN_Click(object sender, EventArgs e) { QuittungRichBox.AppendText("\t Drinkee Market \t\t" + Environment.NewLine); line(); CheckBoxController(); //UpdateArtical(); //Form1_Load(sender, e); line(); total(); AllReset(); }
public void total() { double fanta_l = Convert.ToDouble(FantaTBox.Text); double cola_l = Convert.ToDouble(ColaTBox.Text); double bier_l = Convert.ToDouble(BierTBox.Text); double G_Kosten = (fanta_l * preis.Fanta) + (cola_l * preis.Cola) + (bier_l * preis.Bier); double MwStr_Kosten = (G_Kosten + preis.MehrwertSteuer); QuittungRichBox.AppendText(" MwStr \t\t\t\t" + preis.MehrwertSteuer + " €" + Environment.NewLine); line(); QuittungRichBox.AppendText(" Summe \t\t\t\t" + MwStr_Kosten + " €" + Environment.NewLine); }
public void line() { int count2 = 1; QuittungRichBox.AppendText("---------------------------------------------------------------------------" + Environment.NewLine); }