コード例 #1
0
 private void btnNuevo_Click(object sender, EventArgs e)
 {
     try
     {
         var frmLiquidacionMant = new FrmLiquidacionMant(this);
         frmLiquidacionMant.MdiParent = this.MdiParent;
         frmLiquidacionMant.Show();
         frmLiquidacionMant.Cargar(null);
     }
     catch (Exception ex)
     {
         Util.ErrorMessage(ex.Message);
     }
 }
コード例 #2
0
        private void btnEditar_Click(object sender, EventArgs e)
        {
            try
            {
                if (this.dgvLiquidaciones.CurrentRow != null)
                {
                    var beLiquidacion = (BE.UI.Liquidacion) this.dgvLiquidaciones.CurrentRow.DataBoundItem;

                    var frmLiquidacionMant = new FrmLiquidacionMant(this);
                    frmLiquidacionMant.MdiParent = this.MdiParent;
                    frmLiquidacionMant.Show();
                    frmLiquidacionMant.Cargar(beLiquidacion);
                }
            }
            catch (Exception ex)
            {
                Util.ErrorMessage(ex.Message);
            }
        }