Exemplo n.º 1
0
        //
        //
        //  CARLO - START
        //
        //

        public Content_Tables()
        {
            InitializeComponent();

            tableOrderCollection = new Collection<TableOrder>();
            for (int i = 1; i <= 31; i++)
            {
                TableOrder to = new TableOrder(i);
                tableOrderCollection.Add(to);
            }

            fTableOrder = new Form_TableOrder();
            Parent_Grid.Children.Add(fTableOrder);

            fTableOrder.Visibility = Visibility.Hidden;

            fTableOrder.itemFormButtonClicked += InflateForm_AddItem;
            fTableOrder.paymentFormButtonClicked += InflateForm_Payment;
            fTableOrder.closeFormButtonClicked += CloseForm;
            fTableOrder.deleteItem += DeleteItemFromTableOrder;
            fTableOrder.disableAddItemForm += DisableFormAddItem;
            fTableOrder.enableAddItemForm += EnableFormAddItem;


            fAddItem = new Form_AddItem();
            Parent_Grid.Children.Add(fAddItem);

            fAddItem.Visibility = Visibility.Hidden;

            fAddItem.addItemButtonClicked += AddItemToTableOrder;
            fAddItem.closeFormButtonClicked += CloseForm;


            fPayment = new Form_Payment();
            Parent_Grid.Children.Add(fPayment);

            fPayment.Visibility = Visibility.Hidden;
            fPayment.confrimButtonClicked += ProcessTransaction;
            fPayment.closeFormButtonClicked += CloseForm;

        }
Exemplo n.º 2
0
        //
        //
        //  CARLO - START
        //
        //

        public Content_Tables()
        {
            InitializeComponent();

            tableOrderCollection = new Collection <TableOrder>();
            for (int i = 1; i <= 31; i++)
            {
                TableOrder to = new TableOrder(i);
                tableOrderCollection.Add(to);
            }

            fTableOrder = new Form_TableOrder();
            Parent_Grid.Children.Add(fTableOrder);

            fTableOrder.Visibility = Visibility.Hidden;

            fTableOrder.itemFormButtonClicked    += InflateForm_AddItem;
            fTableOrder.paymentFormButtonClicked += InflateForm_Payment;
            fTableOrder.closeFormButtonClicked   += CloseForm;
            fTableOrder.deleteItem         += DeleteItemFromTableOrder;
            fTableOrder.disableAddItemForm += DisableFormAddItem;
            fTableOrder.enableAddItemForm  += EnableFormAddItem;


            fAddItem = new Form_AddItem();
            Parent_Grid.Children.Add(fAddItem);

            fAddItem.Visibility = Visibility.Hidden;

            fAddItem.addItemButtonClicked   += AddItemToTableOrder;
            fAddItem.closeFormButtonClicked += CloseForm;


            fPayment = new Form_Payment();
            Parent_Grid.Children.Add(fPayment);

            fPayment.Visibility              = Visibility.Hidden;
            fPayment.confrimButtonClicked   += ProcessTransaction;
            fPayment.closeFormButtonClicked += CloseForm;
        }