private void button5_Click(object sender, EventArgs e) { if (ModelNameA.Text.Equals("") || BuyCost.Text.Equals("") || InterStorage.Text.Equals("") || ScreenSize.Text.Equals("") || ModelSerial.Text.Equals("") || SecondaryCam.Text.Equals("") || SellCost.Text.Equals("") || Ram.Text.Equals("") || PrimaryCam.Text.Equals("") || CPU.Text.Equals("") || BuyCost.Text.Equals("")) { MessageBox.Show("Please, Fill The Tnput Fields"); } else { businesslayer bl = new businesslayer(); bl.InsertModel(ModelSerial.Text, ModelNameA.Text, BuyCost.Text, SellCost.Text, Ram.Text, CPU.Text, InterStorage.Text, ScreenSize.Text, PrimaryCam.Text, SecondaryCam.Text, CompanyName.Text); LoadAutoCompleteTextBoxes(); } }
private void button3_Click(object sender, EventArgs e) { businesslayer b1 = new businesslayer(); b1.InsertModel(ModelNameA.Text, CompNameA.Text, BuyCost.Text, CPU.Text, ScreenSize.Text, MobileSerialA.Text, SecondaryCam.Text, SellCost.Text, Ram.Text, PrimaryCam.Text, CompanyName.Text); }