コード例 #1
0
        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);
            }
        }
コード例 #2
0
        private void ComboBox_Areas_Loaded(object sender, RoutedEventArgs e)
        {
            var comboBox = sender as ComboBox;

            comboBox.ItemsSource = AandC.GetAreas();

            //comboBox.SelectedIndex = 0;
            CriteriasComboBox.IsDropDownOpen = false;
        }
コード例 #3
0
 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);
 }
コード例 #4
0
 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);
 }