Example #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();
        }
Example #2
0
        public CashiersBookForm(CashierForm setCashierForm)
        {
            InitializeComponent();

            cashierForm = setCashierForm;

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

            cashiers = new repositories.Cashier(db);

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

            InitializeComponent();
        }
Example #4
0
        public SettingsForm(CashierForm setCashierForm)
        {
            cashierForm = setCashierForm;

            cashboxes = new repositories.Cashbox(db);

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

            InitializeComponent();
        }
Example #5
0
 public TabletForm(CashierForm setCashierForm)
 {
     cashierForm = setCashierForm;
     InitializeComponent();
 }
Example #6
0
        public BarcodeScanerForm(CashierForm setCashierForm)
        {
            cashierForm = setCashierForm;

            InitializeComponent();
        }
Example #7
0
 public FreeSaleForm(CashierForm setCashierForm)
 {
     cashierForm = setCashierForm;
     InitializeComponent();
 }