private void button6_Click(object sender, EventArgs e) { bazaClass baza = new bazaClass(); baza.Konto(dataGridView3, textBox5.Text); panel1.Enabled = true; }
private void button4_Click(object sender, EventArgs e) { string przelew1 = "UPDATE Konto SET SALDO = Saldo - " + textBox7.Text + " WHERE Numer_Konta = '" + textBox5.Text + "';"; bazaClass baza = new bazaClass(); baza.Insert(przelew1); string przelew2 = "UPDATE Konto SET SALDO = Saldo + " + textBox7.Text + " WHERE Numer_Konta = '" + textBox6.Text + "';"; baza.Insert(przelew2); baza.Konto(dataGridView3, textBox5.Text); textBox6.Text = ""; textBox7.Text = ""; panel1.Enabled = false; }