Пример #1
0
 /// <summary>
 /// 添加权限按钮事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BT_UserPutInRole_Click(object sender, EventArgs e)
 {
     if (UserManager_Client.UserPutInRole(LB_UserName.SelectedItem.ToString(), LB_Role.SelectedItem.ToString()))
     {
         MessageBox.Show("添加用户权限成功!");
     }
     else
     {
         MessageBox.Show("添加用户权限失败!");
     }
     LB_UserName_SelectedIndexChanged(null, null);
 }