示例#1
0
        private void backBtn_Click(object sender, EventArgs e)
        {
            var mainForm = CandyStoreUtil.GetFormOfType <Main>();

            mainForm.Show();
            this.Hide();
        }
示例#2
0
        public ReceiptForm()
        {
            InitializeComponent();
            receiptTextBox.SelectionAlignment = HorizontalAlignment.Center;

            CandyStoreUtil.MakeLabelsTransparent(this);
        }
示例#3
0
        public ProductsForm()
        {
            InitializeComponent();

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

            mainForm.Show();
            this.Close();
        }
示例#5
0
        public AdminManagerView(IViewService viewService)
        {
            _viewService = viewService;

            InitializeComponent();

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

            main.Show();
            Session.Clear();
            this.Close();
        }
示例#7
0
        public OrderStatusForm()
        {
            InitializeComponent();

            CandyStoreUtil.MakeLabelsTransparent(this);

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

            _viewService = viewService;

            InitializeComponent();

            CandyStoreUtil.MakeLabelsTransparent(this);
        }
示例#9
0
        public OrderForm()
        {
            InitializeComponent();
            InitializeProductsQuantityHash();

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

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

            _viewService = viewService;

            InitializeComponent();

            CandyStoreUtil.MakeLabelsTransparent(this);
        }
示例#11
0
        public ReceiptView(IReceiptPresenter receiptPresenter, IViewService viewService)
        {
            Presenter      = receiptPresenter;
            Presenter.View = this;

            _viewService = viewService;

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

            CandyStoreUtil.MakeLabelsTransparent(this);
        }
示例#12
0
        public ShoppingCartForm()
        {
            InitializeComponent();

            CandyStoreUtil.MakeLabelsTransparent(this);

            foreach (var item in Session.Products)
            {
                double currentProductPrice = item.Key.Price * item.Value;
                _totalPrice += currentProductPrice;
            }
        }
示例#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> >();
        }
示例#14
0
        public ProductsView(IProductsPresenter productsPresenter,
                            IImageUtil imageUtil)
        {
            Presenter      = productsPresenter;
            Presenter.View = this;

            _imageUtil = imageUtil;

            InitializeComponent();

            CandyStoreUtil.MakeLabelsTransparent(this);
            noProductsLbl.Visible = false;
        }
示例#15
0
        public AdminManagerForm()
        {
            InitializeComponent();

            CandyStoreUtil.MakeLabelsTransparent(this);
        }
示例#16
0
        public CategoriesForm()
        {
            InitializeComponent();

            CandyStoreUtil.MakeLabelsTransparent(this);
        }