private void BtnAbono_Click(object sender, EventArgs e)
        {
            AbonoSmall abonoSmall = new AbonoSmall
            {
                Saldo_actual = this.Agendamiento.Saldo_restante,
            };

            abonoSmall.OnBtnSaveClick += AbonoSmall_OnBtnSaveClick;
            this.container             = new PoperContainer(abonoSmall);
            this.container.Show(this.btnAbono);
        }
Beispiel #2
0
        private void BtnAbono_Click(object sender, EventArgs e)
        {
            if (this.abonoSmall == null)
            {
                this.abonoSmall = new AbonoSmall();
            }

            if (this.UltimoAgendamiento == null)
            {
                abonoSmall.Saldo_actual = this.Venta.Total_venta;
            }
            else
            {
                abonoSmall.Saldo_actual = this.UltimoAgendamiento.Saldo_restante;
            }
            abonoSmall.OnBtnSaveClick -= AbonoSmall_OnBtnSaveClick;
            abonoSmall.OnBtnSaveClick += AbonoSmall_OnBtnSaveClick;
            this.container             = new PoperContainer(abonoSmall);
            this.container.Show(this.btnAbono);
        }