Exemplo n.º 1
0
        public override void Inicializar()
        {
            base.Inicializar();

            // Se crean los objetos necesarios
            this.ctlCobro  = new Cobro();
            this.ctlPartes = new c9500Partes();

            // Se configuran las propiedades necesarias de los objetos
            this.ctlCobro.HabilitarTipoDePago   = false;
            this.ctlCobro.MostrarFacturar       = false;
            this.ctlCobro.HabilitarRetroceso    = false;
            this.ctlCobro.HabilitarFormasDePago = false;
            this.ctlCobro.CambiarCliente(this.Cliente.ClienteID);
            this.ctlPartes.o9500 = this;
            this.ctlPartes.CambiarCliente(this.Cliente);

            // Se agregan a los paneles (esto desencadena el evento "Load" de cada control)
            this.pnlEnTotales.Controls.Add(this.ctlCobro);
            this.pnlEnContenido.Controls.Add(this.ctlPartes);
        }
Exemplo n.º 2
0
        public override void Inicializar()
        {
            base.Inicializar();

            // Se crean los objetos necesarios
            this.ctlCobro = new Cobro();
            this.ctlPartes = new c9500Partes();

            // Se configuran las propiedades necesarias de los objetos
            this.ctlCobro.HabilitarTipoDePago = false;
            this.ctlCobro.MostrarFacturar = false;
            this.ctlCobro.HabilitarRetroceso = false;
            this.ctlCobro.HabilitarFormasDePago = false;
            this.ctlCobro.CambiarCliente(this.Cliente.ClienteID);
            this.ctlPartes.o9500 = this;
            this.ctlPartes.CambiarCliente(this.Cliente);

            // Se agregan a los paneles (esto desencadena el evento "Load" de cada control)
            this.pnlEnTotales.Controls.Add(this.ctlCobro);
            this.pnlEnContenido.Controls.Add(this.ctlPartes);
        }