private void AreasListBox_Loaded(object sender, RoutedEventArgs e)
        {
            foreach (string s in AsAndCs.GetAreas())
            {
                AreasListBox.Items.Add(s);
            }

            //TODO:GetConditions doesn't need parameters anymore
            ConditionsListBox.Items.Clear();
            foreach (string s in AsAndCs.GetConditions("any"))
            {
                ConditionsListBox.Items.Add(s);
            }
        }
        private void ComboBox_Areas_Loaded(object sender, RoutedEventArgs e)
        {
            var comboBox = sender as ComboBox;

            comboBox.ItemsSource = AandC.GetAreas();

            //comboBox.SelectedIndex = 0;
            CriteriasComboBox.IsDropDownOpen = false;
        }
 private void ResetComboBoxes()
 {
     dontRunSelectionChanged = true;
     AandC = AandCList[OverlayComboBox.SelectedIndex];
     AreasComboBox.ItemsSource     = null;
     AreasComboBox.ItemsSource     = AandC.GetAreas();
     CriteriasComboBox.ItemsSource = new string[] { "Select an Area" };
     //comboBox.SelectedIndex = 0;
     //AreasComboBox.SelectedItem = null;
     dontRunSelectionChanged = false;
     curRect = RectArea;
     setCurComboBox(AreasComboBox);
 }
 private void ResetComboBoxes()
 {
     dontRunSelectionChanged = true;
     AandC = AandCList[OverlayComboBox.SelectedIndex];
     AreasComboBox.ItemsSource = null;
     AreasComboBox.ItemsSource = AandC.GetAreas();
     CriteriasComboBox.ItemsSource = new string[] { "Select an Area" };
     //comboBox.SelectedIndex = 0;
     //AreasComboBox.SelectedItem = null;
     dontRunSelectionChanged = false;
     curRect = RectArea;
     setCurComboBox(AreasComboBox);
 }