예제 #1
0
 private void BtnNuevo_Click(object sender, EventArgs e)
 {
     FrmAuxiliares.FrmTipoDocumento FrmTipDoc = new LFVBNewTPV.TPV.FrmAuxiliares.FrmTipoDocumento();
     FrmTipDoc.ShowDialog();
     if (FrmTipDoc.TipoSel.Trim() != "")
     {
         Documento    nuevo   = this.documentos.Nuevo();
         FrmDocumento FrmDocu = new FrmDocumento(nuevo, FrmTipDoc.TipoSel.Trim());
         FrmDocu.MdiParent    = this.MdiParent;
         FrmDocu.FormClosing += new FormClosingEventHandler(FrmDocu_FormClosing);
         FrmDocu.Show();
     }
 }
예제 #2
0
 private void BtnFicha_Click(object sender, EventArgs e)
 {
     if (this.DGDatos.CurrentRow != null)
     {
         try
         {
             Documento aux = this.documentos.Buscar(Convert.ToInt64(this.DGDatos.CurrentRow.Cells["cIdElem"].Value.ToString()));
             if (aux != null)
             {
                 FrmDocumento FrmDocu = new FrmDocumento(aux);
                 FrmDocu.MdiParent    = this.MdiParent;
                 FrmDocu.FormClosing += new FormClosingEventHandler(FrmDocu_FormClosing);
                 FrmDocu.Show();
             }
         }
         catch (Exception err)
         {
             SISTEMA.MENSAJES.FrmError FrmErr = new LFVBNewTPV.SISTEMA.MENSAJES.FrmError(err);
         }
     }
 }