Exemplo n.º 1
0
        private void cmdAgregar_Click(object sender, EventArgs e)
        {
            frmRegCfgDocSerie Ventana = new frmRegCfgDocSerie(db, ParamSystem, user, 1);

            Ventana.CaptionBarColor  = ColorTranslator.FromHtml(StiloColor.Encabezado);
            Ventana.CaptionForeColor = ColorTranslator.FromHtml(StiloColor.FontColor);
            Ventana.ShowDialog();
            LlenaGridView();
        }
Exemplo n.º 2
0
 private void cmdConsultar_Click(object sender, EventArgs e)
 {
     try
     {
         String            CodMP   = grdView[2, grdView.CurrentRow.Index].Value.ToString();
         String            Ser     = grdView[4, grdView.CurrentRow.Index].Value.ToString();
         frmRegCfgDocSerie Ventana = new frmRegCfgDocSerie(db, ParamSystem, user, 3, CodMP, Ser);
         Ventana.CaptionBarColor  = ColorTranslator.FromHtml(StiloColor.Encabezado);
         Ventana.CaptionForeColor = ColorTranslator.FromHtml(StiloColor.FontColor);
         Ventana.ShowDialog();
         LlenaGridView();
     }
     catch (Exception ex)
     {
         MessageBoxAdv.Show("Tienes que seleccionar un registro. " + ex.Message,
                            "Error al consultar", MessageBoxButtons.OK,
                            MessageBoxIcon.Error);
     }
 }