public MainPage()
        {
            this.InitializeComponent();

            DataContext = this;

            StoreClass store = new StoreClass();

            InStockList.ItemsSource    = store.GetCurrentStockList();
            StockToAddList.ItemsSource = store.GetCurrentDeliverysList();
            CustomerList = new ObservableCollection <CustomerClass>(store.GetCurrentCustomerList());
            StockList    = new ObservableCollection <StockClass>(store.GetCurrentStockList());

            #region OLD
            //this.CreateOrderTabCustomersComboBox.ItemsSource = store.GetCurrentStockList();
            //InStockList.ItemsSource = dataSets.GetDefaultStockList();
            //StockToAddList.ItemsSource = dataSets.GetDefaultDeliverysList();

            //CustomerList = store.GetCurrentCustomerList();
            //CustomerList = dataSets.GetDefaultCustomerList();
            #endregion

            #region OLD
            //PopulateCustomerComboBox(store);
            //PopulateCreateOrderComboBox(store);
            #endregion
        }
示例#2
0
        public MainPage()
        {
            this.InitializeComponent();

            DataContext = this;

            StoreClass store = new StoreClass();

            InStockList.ItemsSource    = store.GetCurrentStockList();
            StockToAddList.ItemsSource = store.GetCurrentDeliverysList();
            CustomerList   = new ObservableCollection <CustomerClass>(store.GetCurrentCustomerList());
            StockList      = new ObservableCollection <StockClass>(store.GetCurrentStockList());
            CustomerOrders = new ObservableCollection <CustomerOrderClass>(store.GetCurrentCustomerOrders());
        }