Пример #1
0
        //UserControlExchangerates userControlExchangerates = new UserControlExchangerates();
        //UserControlCustomer userControlCustomer = new UserControlCustomer();
        //UserControlAuctionItem userControlAuctionItem = new UserControlAuctionItem();
        //UserControlBidCalculation userControlBidCalculation = new UserControlBidCalculation();

        public MainWindow()
        {
            InitializeComponent();
            BIZ              = new ClassBIZ();
            ucExchangerates  = new UserControlExchangerates(BIZ);
            ucCustomer       = new UserControlCustomer(BIZ);
            ucAuctionItem    = new UserControlAuctionItem(BIZ);
            ucBidCalculation = new UserControlBidCalculation(BIZ);

            GridBottom.Children.Add(ucExchangerates);
            GridTopLeft.Children.Add(ucCustomer);
            GridTopMiddel.Children.Add(ucAuctionItem);
            GridTopRight.Children.Add(ucBidCalculation);
        }
Пример #2
0
        public MainWindow()
        {
            InitializeComponent();

            BIZ = new ClassBIZ();

            UCC  = new UserControlCustomer(BIZ);
            UCDP = new UserControlDailyPrice(BIZ);
            UCD  = new UserControlDiesel(BIZ);
            UCS  = new UserControlSupplier(BIZ);

            // We add the usercontrols as children of each of the respective grid from the tabs
            CustomerGrid.Children.Add(UCC);
            DailyPriceGrid.Children.Add(UCDP);
            SalesGrid.Children.Add(UCD);
            SupplierGrid.Children.Add(UCS);

            BIZ.CallWebApi();
        }