using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Übungen_LF6_WinFormanwendung { public partial class PrePaid_Übung : Form { PrePaid Vertrag1 = new PrePaid(0.24,0.09,0.09,100); public PrePaid_Übung() { InitializeComponent(); } private void button_ende_Click(object sender, EventArgs e) { this.Close(); } private void button_SMSBuchen_Click(object sender, EventArgs e) { Vertrag1.verbrauchSMS(); textBox_guthaben.Text = Convert.ToString(Vertrag1.guthaben); } private void button_BuchenMinuten_Click(object sender, EventArgs e) { Vertrag1.verbrauchMinute(Convert.ToDouble(textBox_Minute)); textBox_guthaben.Text = Convert.ToString(Vertrag1.guthaben); } private void button_BuchenMB_Click(object sender, EventArgs e) { Vertrag1.verbrauchMByte(Convert.ToDouble(textBox_MByte)); textBox_guthaben.Text = Convert.ToString(Vertrag1.guthaben); } private void button_Aufladen_Click(object sender, EventArgs e) { Vertrag1.aufladen(Convert.ToDouble(textBox_AufladungEuro)); textBox_guthaben.Text = Convert.ToString(Vertrag1.guthaben); } } }