private void EditItem() { PaducnSoft.Model.ay_system model = dal.GetModel(); this.bCompany.Text = model.bCompany; this.bContact.Text = model.bContact; this.bPhone.Text = model.bPhone; this.bEmail.Text = model.bEmail; }
private void EditItem() { PaducnSoft.Model.ay_system model = dal.GetModel(); this.bName.Text = model.bName; this.bTitle.Text = model.bTitle; this.bUrl.Text = model.bUrl; this.bPic.Text = model.bPic; this.bMiibeian.Text = model.bMiibeian; this.bKeywords.Text = model.bKeywords; this.bDescriptions.Text = model.bDescriptions; this.bCounter.Text = model.bCounter; }
//函数 private void UpdateItem() { PaducnSoft.Model.ay_system model = new PaducnSoft.Model.ay_system(); model.bCompany = this.bCompany.Text; model.bContact = this.bContact.Text; model.bPhone = this.bPhone.Text; model.bEmail = this.bEmail.Text; bool result = dal.Update(model); if (result) { MessageBox.Alert(this, "联系信息配置成功!"); } else { MessageBox.Alert(this, "联系信息配置失败,请检查数据是否正确!"); } }
//函数 private void UpdateItem() { PaducnSoft.Model.ay_system model = new PaducnSoft.Model.ay_system(); model.bName = this.bName.Text; model.bTitle = this.bTitle.Text; model.bUrl = this.bUrl.Text; model.bPic = this.bPic.Text; model.bMiibeian = this.bMiibeian.Text; model.bKeywords = this.bKeywords.Text; model.bDescriptions = this.bDescriptions.Text; model.bCounter = this.bCounter.Text; bool result = dal.Update(model); if (result) { MessageBox.Alert(this, "网站配置成功!"); } else { MessageBox.Alert(this, "网站配置失败,请检查数据是否正确!"); } }