private void button_add_Click(object sender, EventArgs e) { ArrayList reportInfo = new ArrayList(); reportInfo.Add(textBox_patientid.Text); reportInfo.Add(textBox_testRequest.Text); reportInfo.Add(textBox_testComplete.Text); reportInfo.Add(dateTimePicker1.Text); DatabaseHelperClass ob = new DatabaseHelperClass(reportInfo); if (ob.addReport()) { MessageBox.Show("Report Added"); showPatientList(); } else { MessageBox.Show("Error Adding Report"); } }