private void Save_admin_Click(object sender, EventArgs e) { Model.Admin model = new Model.Admin(); model.Name = textAdmin_name.Text.Trim(); model.Pass = textAdmin_pwd.Text.Trim(); BLL.Admin bll = new BLL.Admin(); if (bll.insert(model)) { MessageBox.Show("增加账号成功!"); } else { MessageBox.Show("增加失败"); } }