private void button1_Click(object sender, EventArgs e) { int No_of_rows = controllerObj.AddSupplier(Int16.Parse(textBox2.Text), textBox1.Text, textBox3.Text, textBox4.Text, textBox5.Text); if (No_of_rows == 0) { MessageBox.Show("Insertion Failed"); } else { MessageBox.Show("Insertion succeeded"); } }