Example #1
0
        private void btn_update_Click(object sender, EventArgs e)
        {
            string RegNumber = textBox2.Text;

            DBconnect db = new DBconnect();

            db.Update($"UPDATE students SET RegistrationNumber={RegNumber} WHERE Name='john'");
        }
Example #2
0
        private void UpdatebunifuFlatButton_Click(object sender, EventArgs e)
        {
            DBconnect dBconnect = new DBconnect();

            dBconnect.Update($"UPDATE customers SET Mobile={bunifuMaterialTextbox2.Text},Address={bunifuMaterialTextbox3.Text},Picture={pictureBox1.Image} WHERE CustomerName='{bunifuMaterialTextbox1.Text}'");
        }