private void OK_Click(object sender, EventArgs e) { bool bSuccess = false; UserBLL udb = new UserBLL(); bSuccess = udb.AddGroup(udb.user.UserID.ToString(), GroupName_TextBox.Text); if (bSuccess) { MessageBox.Show("添加分组成功!"); this.Hide(); } else { MessageBox.Show("删除分组失败!"); } }