Ejemplo n.º 1
0
        private void backBtn_Click(object sender, EventArgs e)
        {
            var mainForm = CandyStoreUtil.GetFormOfType <Main>();

            mainForm.Show();
            this.Hide();
        }
Ejemplo n.º 2
0
        public ReceiptForm()
        {
            InitializeComponent();
            receiptTextBox.SelectionAlignment = HorizontalAlignment.Center;

            CandyStoreUtil.MakeLabelsTransparent(this);
        }
Ejemplo n.º 3
0
        public ProductsForm()
        {
            InitializeComponent();

            CandyStoreUtil.MakeLabelsTransparent(this);
            noProductsLbl.Visible = false;
        }
Ejemplo n.º 4
0
        private void nextCustomerButton_Click(object sender, EventArgs e)
        {
            Session.Clear();
            var mainForm = CandyStoreUtil.GetFormOfType <Main>();

            mainForm.Show();
            this.Close();
        }
Ejemplo n.º 5
0
        public AdminManagerView(IViewService viewService)
        {
            _viewService = viewService;

            InitializeComponent();

            CandyStoreUtil.MakeLabelsTransparent(this);
        }
Ejemplo n.º 6
0
        private void backBtn_Click(object sender, EventArgs e)
        {
            var main = CandyStoreUtil.GetFormOfType <Main>();

            main.Show();
            Session.Clear();
            this.Close();
        }
Ejemplo n.º 7
0
        public OrderStatusForm()
        {
            InitializeComponent();

            CandyStoreUtil.MakeLabelsTransparent(this);

            _orderService = new OrderServiceSoapClient();
            _orders       = new List <OrderDto>();
        }
Ejemplo n.º 8
0
        public CategoriesView(ICategoriesPresenter categoriesPresenter, IViewService viewService)
        {
            Presenter      = categoriesPresenter;
            Presenter.View = this;

            _viewService = viewService;

            InitializeComponent();

            CandyStoreUtil.MakeLabelsTransparent(this);
        }
Ejemplo n.º 9
0
        public OrderForm()
        {
            InitializeComponent();
            InitializeProductsQuantityHash();

            CandyStoreUtil.SetAutoCompleteOnComboBoxes(this);
            CandyStoreUtil.MakeLabelsTransparent(this);

            _orderService           = new OrderServiceSoapClient();
            _productsBySupplierHash = new Dictionary <SupplierDto, List <ProductDto> >();
        }
Ejemplo n.º 10
0
        public ShoppingCartView(IShoppingCartPresenter shoppingCartPresenter, IViewService viewService)
        {
            Presenter      = shoppingCartPresenter;
            Presenter.View = this;

            _viewService = viewService;

            InitializeComponent();

            CandyStoreUtil.MakeLabelsTransparent(this);
        }
Ejemplo n.º 11
0
        public ReceiptView(IReceiptPresenter receiptPresenter, IViewService viewService)
        {
            Presenter      = receiptPresenter;
            Presenter.View = this;

            _viewService = viewService;

            InitializeComponent();
            receiptTextBox.SelectionAlignment = HorizontalAlignment.Center;

            CandyStoreUtil.MakeLabelsTransparent(this);
        }
Ejemplo n.º 12
0
        public ShoppingCartForm()
        {
            InitializeComponent();

            CandyStoreUtil.MakeLabelsTransparent(this);

            foreach (var item in Session.Products)
            {
                double currentProductPrice = item.Key.Price * item.Value;
                _totalPrice += currentProductPrice;
            }
        }
Ejemplo n.º 13
0
        public OrderView(IOrderPresenter orderPresenter)
        {
            InitializeComponent();
            InitializeProductsQuantityHash();

            CandyStoreUtil.SetAutoCompleteOnComboBoxes(this);
            CandyStoreUtil.MakeLabelsTransparent(this);

            Presenter      = orderPresenter;
            Presenter.View = this;

            _productsBySupplierHash = new Dictionary <SupplierDto, List <ProductDto> >();
        }
Ejemplo n.º 14
0
        public ProductsView(IProductsPresenter productsPresenter,
                            IImageUtil imageUtil)
        {
            Presenter      = productsPresenter;
            Presenter.View = this;

            _imageUtil = imageUtil;

            InitializeComponent();

            CandyStoreUtil.MakeLabelsTransparent(this);
            noProductsLbl.Visible = false;
        }
Ejemplo n.º 15
0
        public AdminManagerForm()
        {
            InitializeComponent();

            CandyStoreUtil.MakeLabelsTransparent(this);
        }
Ejemplo n.º 16
0
        public CategoriesForm()
        {
            InitializeComponent();

            CandyStoreUtil.MakeLabelsTransparent(this);
        }