using AllBase.Model.Result; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using TemuKJD.BaseForms; namespace KJD.VDianForms { public partial class VDianShopEditForm : BaseGeneralForm { private VDianShopLoginInfo shop = null; public VDianShopEditForm(VDianShopLoginInfo shopInfo = null) { InitializeComponent(); this.Text = this.TitleText = "编辑微店"; if (shopInfo != null) { this.txtName.Text = shopInfo.ShopName; this.txtPhone.Text = shopInfo.Phone; this.txtPassword.Text = shopInfo.Password; shop = shopInfo; } } private void btnSave_Click(object sender, EventArgs e) { if (shop != null) { shop.Phone = txtPhone.Text; shop.Password = txtPassword.Text; this.OnSaveComplete(shop); this.Close(); } } } }