示例#1
0
 private void but_xiugai_Click(object sender, EventArgs e)
 {
     try
     {
         if (LV_info.SelectedItems.Count == 1)
         {
             if (LV_info.SelectedItems[0].SubItems[0].Text.Trim() == "超级管理员")
             {
                 MessageBox.Show("不能修改超级管理员");
             }
             else
             {
                 Frm_Power p = new Frm_Power();
                 p.RName = LV_info.SelectedItems[0].SubItems[0].Text.Trim();
                 p.ShowDialog();
                 quanxian();
             }
         }
         else
         {
             MessageBox.Show("请选择要修改的权限");
         }
     }
     catch { }
 }
示例#2
0
        private void but_AddQX_Click(object sender, EventArgs e)
        {
            Frm_Power p = new Frm_Power();

            p.RName = null;
            p.ShowDialog();
            quanxian();
        }