Beispiel #1
0
        public void CreateBasketDatafromOrder(Order orderDataObject)
        {
            DisableAmountBox();
            removeButton.Visible = false;

            InterfaceToDataBaseProductMethods Methods = new InterfaceToDataBaseProductMethods();

            productDataObject = Methods.GetProductData(orderDataObject.ProductID).Result;

            SetData(orderDataObject);
        }
Beispiel #2
0
        public BasketDataUserControl(Basket basketDataObject)
        {
            InitializeComponent();
            this.basketDataObject = basketDataObject;
            InterfaceToDataBaseProductMethods Methods = new InterfaceToDataBaseProductMethods();

            productDataObject = Methods.GetProductData(basketDataObject.ProductID).Result;
            SetData();
            //amountBox.TextChanged += amountBox_TextChanged;
            amountBox.Enter += amountBox_Enter;
            amountBox.Leave += amountBox_Leave;
        }