private void btnSeleccionar_Click(object sender, EventArgs e) { Abm_Rol_Busqueda oFrm = new Abm_Rol_Busqueda(); oFrm.ShowDialog(); if ((oFrm.Resultado != null)) //Resultado es el DataRow.- { rol_id = Convert.ToInt32(oFrm.Resultado["Id"]); txtRol.Text = oFrm.Resultado["Nombre"].ToString(); } }
private void btnSeleccionar_Click(object sender, EventArgs e) { Abm_Rol_Busqueda oFrm = new Abm_Rol_Busqueda(); oFrm.ShowDialog(); if ((oFrm.Resultado != null)) //Resultado es el DataRow.- { oDtRol = InterfazBD.getRol(oFrm.Resultado["Nombre"].ToString()); txtRolName.Text = oFrm.Resultado["Nombre"].ToString(); Aplicar(); } }