Exemple #1
0
        // this method is to handle when the buy button is clicked
        private void Buy_Button_Click(object sender, RoutedEventArgs e)
        {
            FilterButton btn     = sender as FilterButton;
            bool         enabled = btn.FilterActive;

            BuySlider.IsEnabled = enabled;
            BuyText.IsEnabled   = enabled;

            PinCollection.RefreshPins(false);
            UpdateSearchAreaCircle();
            UpdateListings();
        }
Exemple #2
0
        // this method is to handle when the rent button is clicked
        private void Rent_Button_Click(object sender, RoutedEventArgs e)
        {
            FilterButton btn     = sender as FilterButton;
            bool         enabled = btn.FilterActive;

            RentText.IsEnabled   = enabled;
            RentSlider.IsEnabled = enabled;

            PinCollection.RefreshPins(false);
            UpdateSearchAreaCircle();
            UpdateListings();

            TopBarGrid.ColumnDefinitions.ElementAt(5).Width = enabled ? new GridLength(1, GridUnitType.Auto) : new GridLength(0);
        }