private void FillComMode() { List <PermissionVo> voList = new List <PermissionVo>(); DataTable dt = SelectDao.GetPermission(); foreach (DataRow dr in dt.Rows) { comMode.Properties.Items.Add(dr[0].ToString()); } }
public void GetUserRight(string userName) { DataTable dt = SelectDao.GetPermission(userName); foreach (DataRow dr in dt.Rows) { string mode = dr[0].ToString(); if (RightDic.ContainsKey(mode)) { RightDic[mode] = true; } } }