private void btnVer_Click(object sender, EventArgs e) { try { frmCatLstPreciosDet LPv = new frmCatLstPreciosDet(db, ParamSystem, user, StiloColor, grdView[0, grdView.CurrentRow.Index].Value.ToString(), ""); LPv.CaptionBarColor = ColorTranslator.FromHtml(StiloColor.Encabezado); LPv.CaptionForeColor = ColorTranslator.FromHtml(StiloColor.FontColor); LPv.ShowDialog(); } catch (Exception ex) { MessageBoxAdv.Show("Tienes que seleccionar un registro\n" + ex.Message, "Alerta", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } }
private void cmdLstPrecio_Click(object sender, EventArgs e) { try { frmCatLstPreciosDet LPv = new frmCatLstPreciosDet(db, ParamSystem, user, StiloColor, "", txtClaveArticulo.Text); LPv.CaptionBarColor = ColorTranslator.FromHtml(StiloColor.Encabezado); LPv.CaptionForeColor = ColorTranslator.FromHtml(StiloColor.FontColor); LPv.ShowDialog(); } catch (Exception ex) { MessageBoxAdv.Show("Tienes que seleccionar un registro\n" + ex.Message, "Alerta", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } }