private void button1_Click(object sender, EventArgs e) { int setor = int.Parse(textBox1.Text); if (setor <= 5000) { MessageBox.Show("Gagal simpan uang"); } else { t.simpanUang(setor); MessageBox.Show("Berhasil Menyimpan Uang" + t.cekSaldo().ToString()); } }
private void button1_Click(object sender, EventArgs e) { t.ambilDollar(int.Parse(textBox1.Text)); MessageBox.Show("Berhasil Mengambil Uang" + t.cekSaldo().ToString()); }
public FormSaldo(Tabungan t) { InitializeComponent(); this.t = t; label2.Text = t.cekSaldo().ToString(); }