Exemple #1
0
 public CheckoutCommentsUI(Order order, OrderHomeUI orderHomeUI)
 {
     InitializeComponent();
     this.order       = order;
     this.orderHomeUI = orderHomeUI;
     InitComments();
 }
Exemple #2
0
        public OrderMenuUI(Order order, OrderHomeUI orderMenuUI, string panelName)
        {
            InitializeComponent();

            this.orderMenuUI = orderMenuUI;

            listViews.Add(listView_StartersLunch);
            listViews.Add(listView_MainCoursesLunch);
            listViews.Add(listView_DessertsLunch);
            listViews.Add(listView_StartersDinner);
            listViews.Add(listView_MainCoursesDinner);
            listViews.Add(listView_SideDishesDinner);
            listViews.Add(listView_DessertsDinner);
            listViews.Add(listView_HotDrinks);
            listViews.Add(listView_Soda);
            listViews.Add(listView_Wine);
            listViews.Add(listView_Beer);
            listViews.Add(listView_DistilledDrinks);

            ShowPanel(panelName);

            this.order = order;
            this.order.orderItems.Clear();

            AssignItemsToListViews();

            orderMenuUI.Hide();
        }
Exemple #3
0
        public CheckoutTipUI(Order order, OrderHomeUI orderHomeUI)
        {
            InitializeComponent();
            this.orderHomeUI = orderHomeUI;
            this.order       = order;

            //set text
            InitTipFormLabels();
        }
Exemple #4
0
 public CheckoutPayUI(Order order, OrderHomeUI orderHomeUI)
 {
     InitializeComponent();
     this.orderHomeUI = orderHomeUI;
     this.order       = order;
     //show payment methods
     pnlChoosePayOption.Show();
     pnlChoosePayOption.BringToFront();
 }
Exemple #5
0
        public CheckoutPayChangeUI(Order order, OrderHomeUI orderHomeUI)
        {
            InitializeComponent();
            this.order       = order;
            this.orderHomeUI = orderHomeUI;

            //hide labels
            lblChange.Hide();
            lblChangeText.Hide();
            lblNotEnough.Hide();
            lblEuroSign.Hide();

            //set text
            lblTotalAmount.Text = string.Format("{0:0.00}", order.GetTotalAmount("Total"));
        }
Exemple #6
0
        public OrderOverviewUI(Order order, OrderHomeUI orderMenuUI)
        {
            InitializeComponent();

            try
            {
                this.order = orderLogic.get_Order(order);
                AddItemsToListView();
            }
            catch
            {
                MessageBox.Show("Probleem met het laden van de database. Probeer opnieuw.");
                this.Hide();
                orderUI.Show();
            }

            this.orderUI = orderMenuUI;
        }
        public CheckoutOverviewOrderUI(Order order, OrderHomeUI orderHomeUI)
        {
            InitializeComponent();

            this.order       = order;
            this.orderHomeUI = orderHomeUI;

            //hide tip labels
            lblTip.Hide();
            lblTipAmount.Hide();
            lblTipEuroSign.Hide();

            //check if there's a order
            //if no; show "error" panel
            if (order.orderItems.Count == 0)
            {
                ShowPanel("Error");
            }
            else
            {
                ShowPanel("Overview");
            }
        }