Example #1
0
        private void button_update_Click(object sender, EventArgs e)
        {
            ArrayList bloodInfo = new ArrayList();

            bloodInfo.Add(label_bloodType.Text);
            bloodInfo.Add(textBox_noOfBags.Text);
            DatabaseHelperClass ob = new DatabaseHelperClass(bloodInfo);

            if (ob.updateBloodData())
            {
                MessageBox.Show("Updated");
                showBloodList();
            }
            else
            {
                MessageBox.Show("Error Update");
            }
        }