public string Check(Supershop aSupershop) { if (aSupershop.ShopName != string.Empty || aSupershop.Address != string.Empty) { return("Supershop named " + aSupershop.ShopName + " is saved"); } return("Please Fill up the Box"); }
private void saveButton_Click(object sender, EventArgs e) { aSupershop = new Supershop(shopNameTextBox.Text, shopAddressTextBox.Text); SupershopBll aSupershopBll = new SupershopBll(); string messege = aSupershopBll.Check(aSupershop); MessageBox.Show(messege); }