Ejemplo n.º 1
0
 public ProductsPresenter(Products view)
 {
     productDAO = new productDAO();
     cached = new List<Product>();
     this.view = view;
     this.state = FormState.UPDATE_OLD;
 }
Ejemplo n.º 2
0
        public Form1()
        {
            InitializeComponent();
            dao = new productDAO();
            units = new List<Units>();
            units.Add(Units.BOTTLE_033);
            units.Add(Units.BOTTLE_05);
            units.Add(Units.BOX);
            units.Add(Units.CRATE);
            units.Add(Units.GLASS_POT);
            units.Add(Units.PACK);
            units.Add(Units.PACKING);
            units.Add(Units.TIN_POT); 
            units.Add(Units.UNIT);
            cmbUnit.DataSource = units;

        }
Ejemplo n.º 3
0
        //private Product current;

        //private FormState state = FormState.UPDATE_OLD ;

        public Products()
        {
            InitializeComponent();
            presenter = new ProductsPresenter(this);
            productDao = new productDAO();
            groupDao = new ProductGroupDAO();
            Groups = new List<ProductGroup>();
            units = new List<Units>();
            units.Add(Units.EMPTY);
            units.Add(Units.BOTTLE_033);
            units.Add(Units.BOTTLE_05);
            units.Add(Units.BOX);
            units.Add(Units.CRATE);
            units.Add(Units.GLASS_POT);
            units.Add(Units.PACK);
            units.Add(Units.PACKING);
            units.Add(Units.TIN_POT); 
            units.Add(Units.UNIT);
            cmbUnit.DataSource = units;

        }