Esempio n. 1
0
        private void Filter_Click(object sender, RoutedEventArgs e)
        {
            Grid parentGrid   = (Grid)((Button)sender).Parent;
            int  wordsState   = ((ComboBox)parentGrid.FindName("WordsCombo")).SelectedIndex;
            int  titlesState  = ((ComboBox)parentGrid.FindName("TitlesCombo")).SelectedIndex;
            int  seatsState   = ((ComboBox)parentGrid.FindName("SeatsCombo")).SelectedIndex;
            int  diedState    = ((ComboBox)parentGrid.FindName("DiedOutCombo")).SelectedIndex;
            int  weaponsState = ((ComboBox)parentGrid.FindName("WeaponsCombo")).SelectedIndex;

            HousesViewModel.LoadFilteredPage(wordsState, titlesState, seatsState, diedState, weaponsState);
        }