Esempio n. 1
0
 private void nuevoToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         ofrmCatalogo = new FrmGe_CatalogoMant();
         ofrmCatalogo.setAccion(Cl_Enumeradores.eTipo_action.grabar);
         ofrmCatalogo.Event_frmGE_CatalogoMant_FormClosing += ofrmCatalogo_Event_frmGE_CatalogoMant_FormClosing;
         ofrmCatalogo.Show();
     }
     catch (Exception ex)
     {
         Log_Error_bus.Log_Error(ex.ToString());
         MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Esempio n. 2
0
 private void btnNuevo_TipoCat_ButtonClick(object sender, EventArgs e)
 {
     try
     {
         frmCataTipoMant = new FrmGe_CatalogoMant();
         frmCataTipoMant.setAccion(Cl_Enumeradores.eTipo_action.grabar);
         frmCataTipoMant.Event_frmGE_CatalogoMant_FormClosing += frmCataTipoMant_Event_frmGE_CatalogoMant_FormClosing;
         frmCataTipoMant.Text = frmCataTipoMant.Text + " ***NUEVO REGISTRO***";
         frmCataTipoMant.Show();
     }
     catch (Exception ex)
     {
         Log_Error_bus.Log_Error(ex.ToString());
         MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }