Example #1
0
 private void but_xiugQX_Click(object sender, EventArgs e)
 {
     try
     {
         if (DGV_info.SelectedRows.Count == 1)
         {
             string yhqx = DGV_info.SelectedRows[0].Cells[1].Value.ToString().Trim();
             if (yhqx == "超级管理员")
             {
                 MessageBox.Show("不能修改超级管理员用户");
             }
             else
             {
                 Frm_User u = new Frm_User();
                 u.Rname = DGV_info.SelectedRows[0].Cells[0].Value.ToString().Trim();
                 u.ShowDialog();
                 dgv();
             }
         }
     }
     catch { }
 }
Example #2
0
        private void but_AddYH_Click(object sender, EventArgs e)
        {
            Frm_User F_user = new Frm_User();

            F_user.ShowDialog();
        }