Beispiel #1
0
        private void button6_Click(object sender, EventArgs e)
        {
            bazaClass baza = new bazaClass();

            baza.Konto(dataGridView3, textBox5.Text);
            panel1.Enabled = true;
        }
Beispiel #2
0
        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;
        }