public void CheckPriceFilter(ProductCatalogProduct product) { if (selectedPriceCheckbox != null) { selectedPriceCheckbox.UncheckPrice(); selectedPriceCheckbox = null; } _PriceSelected = true; _startPrice = product.StartingPrice; _endPrice = product.EndPrice; // ExecuteButtonManufactureFilter(); // ExecuteButtonPriceFilter(); selectedPriceCheckbox = product; if (selectedMfgCheckbox != null) { selectedMfgCheckbox.CheckMfg(); } if (selectedCatCheckbox != null) { selectedCatCheckbox.CheckCategory(); } selectedPriceCheckbox.CheckPrice(); ExecuteProductFilter(); ExecuteButtonFilters(); }
public void CheckManufacturerFilter(ProductCatalogProduct product) { if (selectedMfgCheckbox != null) { selectedMfgCheckbox.UncheckMfg(); selectedMfgCheckbox = null; } _mfgSeclected = true; _mfgFilter = product.Manufacturer; // ExecuteButtonManufactureFilter(); // ExecuteButtonPriceFilter(); selectedMfgCheckbox = product; if (selectedCatCheckbox != null) { selectedCatCheckbox.CheckCategory(); } if (selectedPriceCheckbox != null) { selectedPriceCheckbox.CheckMfg(); } selectedMfgCheckbox.CheckPrice(); ExecuteProductFilter(); ExecuteButtonFilters(); }