示例#1
0
 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");
 }
示例#2
0
        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);
        }