private void button2_Click(object sender, EventArgs e) { if (CompNameA.Text.Equals("") || CompSerial.Text.Equals("")) { MessageBox.Show("Please, Fill The Tnput Fields"); } else { businesslayer bl = new businesslayer(); bl.InsertComp(CompSerial.Text, CompNameA.Text); LoadAutoCompleteTextBoxes(); } }