private void button1_Click(object sender, EventArgs e) { currentMerchant.Name = MerchantName.Text; currentMerchant.Address = MerchantAddress.Text; currentMerchant.BusinessHours = BusinessHours.Text; currentMerchant.PhoneNum = MerchantPhone.Text; currentMerchant.Picture = File.ReadAllBytes(path.Text); Merchant_Service.ModifyMerchant(currentMerchant); Merchant_Info_Form mif = new Merchant_Info_Form(MerchantAddress.Text, MerchantName.Text, MerchantPhone.Text, BusinessHours.Text, path.Text); mif.ShowDialog(); }
private void btnShowMerchantInfo_Click(object sender, EventArgs e) { Merchant_Info_Form merchantInfoForm = new Merchant_Info_Form(merchant); merchantInfoForm.ShowDialog(); }//打开商家信息界面