Ejemplo n.º 1
0
 public ModificarProductoPage()
 {
     InitializeComponent();
     if (producto == null)
     {
         producto = new Producto();
     }
     if (localNeg == null)
     {
         localNeg = new LocalNeg();
     }
     if (productoNeg == null)
     {
         productoNeg = new ProductoNeg();
     }
     if (estadoNeg == null)
     {
         estadoNeg = new EstadoNeg();
     }
     if (rubroNeg == null)
     {
         rubroNeg = new RubroNeg();
     }
     controlesProducto.cbxRubro.SelectionChanged += CbxRubro_SelectionChanged;
 }
Ejemplo n.º 2
0
 public VerOfertaDetallePage()
 {
     InitializeComponent();
     if (ofertaNeg == null)
     {
         ofertaNeg = new OfertaNeg();
     }
     if (localNeg == null)
     {
         localNeg = new LocalNeg();
     }
     if (productoNeg == null)
     {
         productoNeg = new ProductoNeg();
     }
     if (estadoNeg == null)
     {
         estadoNeg = new EstadoNeg();
     }
     if (rubroNeg == null)
     {
         rubroNeg = new RubroNeg();
     }
     if (detalleOfertaNeg == null)
     {
         detalleOfertaNeg = new DetalleOfertaNeg();
     }
     if (imagenesOfertaNeg == null)
     {
         imagenesOfertaNeg = new ImagenesOfertaNeg();
     }
     if (listaImagenes == null)
     {
         listaImagenes = new List <object>();
     }
     if (listaImagenesOferta == null)
     {
         listaImagenesOferta = new List <ImagenOferta>();
     }
     if (valoracionOfertaNeg == null)
     {
         valoracionOfertaNeg = new ValoracionOfertaNeg();
     }
 }
Ejemplo n.º 3
0
 public RegistrarOfertaPage()
 {
     InitializeComponent();
     if (localNeg == null)
     {
         localNeg = new LocalNeg();
     }
     if (productoNeg == null)
     {
         productoNeg = new ProductoNeg();
     }
     if (estadoNeg == null)
     {
         estadoNeg = new EstadoNeg();
     }
     if (rubroNeg == null)
     {
         rubroNeg = new RubroNeg();
     }
     if (ofertaNeg == null)
     {
         ofertaNeg = new OfertaNeg();
     }
     if (detalleOfertaNeg == null)
     {
         detalleOfertaNeg = new DetalleOfertaNeg();
     }
     if (imagenesOfertaNeg == null)
     {
         imagenesOfertaNeg = new ImagenesOfertaNeg();
     }
     if (listaImagenes == null)
     {
         listaImagenes = new List <object>();
     }
     cargarCbxs();
     setDatePickers();
 }
Ejemplo n.º 4
0
        public PrincipalPage()
        {
            InitializeComponent();

            setSeriesCollection();

            dtFechaOfertaVisitada.SelectedDate = DateTime.Now;

            if (ofertaNeg == null)
            {
                ofertaNeg = new OfertaNeg();
            }
            if (rubroNeg == null)
            {
                rubroNeg = new RubroNeg();
            }
            if (listaOfertasMasVisitadas == null)
            {
                listaOfertasMasVisitadas = new List <Oferta>();
            }
            if (trabajadorNeg == null)
            {
                trabajadorNeg = new TrabajadorNeg();
            }
            if (productoNeg == null)
            {
                productoNeg = new ProductoNeg();
            }

            txtCantOfertas.Text      = ofertaNeg.cantidadTotalOfertas().ToString();
            txtCantTrabajadores.Text = trabajadorNeg.cantidadTotalTrabajadores().ToString();
            txtCantProductos.Text    = productoNeg.cantidadTotalProductos().ToString();

            listarOfertasMasVisitadas();
            listarRubrosMasVisitados();
            setCartesianChart();
        }
Ejemplo n.º 5
0
 public RegistrarProductoPage()
 {
     InitializeComponent();
     if (localNeg == null)
     {
         localNeg = new LocalNeg();
     }
     if (productoNeg == null)
     {
         productoNeg = new ProductoNeg();
     }
     if (estadoNeg == null)
     {
         estadoNeg = new EstadoNeg();
     }
     if (rubroNeg == null)
     {
         rubroNeg = new RubroNeg();
     }
     camposProductos.cbxRubro.SelectionChanged += CbxRubro_SelectionChanged;
     cargarCbxLocal();
     cargarCboEstado();
     cargarCbxRubro();
 }