public void updateItem(object textBox1, object textBox2, object textBox3, object textBox4, object itemId, System.Data.SqlClient.SqlConnection connection) { Database db = new Database(); db.updateItem(textBox1, textBox2, textBox3, textBox4, itemId, connection); }