Ejemplo n.º 1
0
        public ShopBookForm(CashierForm setCashierForm)
        {
            cashierForm = setCashierForm;

            InitializeComponent();

            SetProductsList();

            foreach (entities.Product product in products.GetList())
            {
                productsProvider.Add(product);
            }

            foreach (entities.Category category in categories.GetList())
            {
                categoriesProvider.Add(category);
            }

            if (productsProvider.Count > 0)
            {
                SelectFormProduct(productsProvider[0]);
            }

            productsGridView.DataSource = productsProvider;

            productsGridView.Update();
        }
Ejemplo n.º 2
0
        public CashiersBookForm(CashierForm setCashierForm)
        {
            InitializeComponent();

            cashierForm = setCashierForm;

            if (cashiersProvider.Count > 0)
            {
                SelectFormCashier(cashiersProvider[0]);
            }
        }
Ejemplo n.º 3
0
        public CashierChooseForm(CashierForm setCashierForm)
        {
            cashierForm = setCashierForm;

            cashiers = new repositories.Cashier(db);

            dataMapper = new services.DataMapper(db);
            dataMapper.FillCashiers(cashiers);

            InitializeComponent();
        }
Ejemplo n.º 4
0
        public SettingsForm(CashierForm setCashierForm)
        {
            cashierForm = setCashierForm;

            cashboxes = new repositories.Cashbox(db);

            dataMapper = new services.DataMapper(db);
            dataMapper.FillCashboxes(cashboxes);

            InitializeComponent();
        }
Ejemplo n.º 5
0
 public TabletForm(CashierForm setCashierForm)
 {
     cashierForm = setCashierForm;
     InitializeComponent();
 }
Ejemplo n.º 6
0
        public BarcodeScanerForm(CashierForm setCashierForm)
        {
            cashierForm = setCashierForm;

            InitializeComponent();
        }
Ejemplo n.º 7
0
 public FreeSaleForm(CashierForm setCashierForm)
 {
     cashierForm = setCashierForm;
     InitializeComponent();
 }