// ---------------------- //
        // -- Data Management --- //
        // ---------------------- //

        // Data updates //
        private void refreshProductCombo(bool includeAll)
        {
            try
            {
                productComboList          = ProductFunctions.ProductsList("", includeAll);
                ProductCombo.ItemsSource  = productComboList;
                ProductCombo.SelectedItem = productComboList.FirstOrDefault(p => p.ID == selectedProductID);
            }
            catch (Exception generalException) { MessageFunctions.Error("Error populating product filter list", generalException); }
        }
示例#2
0
        // ---------------------- //
        // -- Data Management --- //
        // ---------------------- //

        // Data updates //
        private void refreshProductGrid()
        {
            gridList = ProductFunctions.ProductsList(descContains);
            ProductGrid.ItemsSource = gridList;
        }