private void btnPermisos_Click(object sender, EventArgs e) { if (dtgRoles.Rows.Count != 0 && rolSelect != null) { ActivarPermisos permisos = new ActivarPermisos(rolSelect, Session); permisos.ShowDialog(); } }
private void btnAsignarRoles_Click(object sender, EventArgs e) { try { if (UsuarioSelect != null) { int rowIndex = (int)row.Cells[0].Value; ActivarPermisos frm = new ActivarPermisos(UsuarioSelect, session); frm.ShowDialog(); } } catch (Exception) { } }