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

            cashierForm = setCashierForm;

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

            cashiers = new repositories.Cashier(db);

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

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

            cashboxes = new repositories.Cashbox(db);

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

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

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