/// <summary> /// 双击时间 去浏览页 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void dgvRole_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex >= 0) { string id = dgvRole.Rows[e.RowIndex].Cells["role_id"].Value.ToString(); UCRoleView uc = new UCRoleView(); uc.uc = this; uc.wStatus = WindowStatus.View; uc.id = id; base.addUserControl(uc, "角色管理-浏览", "RoleView" + id, this.Tag.ToString(), this.Name); } }