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_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (dontRunSelectionChanged)
            {
                return;
            }
            var comboBox = sender as ComboBox;
            //get the selected item
            string value = comboBox.SelectedItem as string;

            //set the conditions to selecteditem
            CriteriasComboBox.ItemsSource = AandC.GetConditions(value);

            //Necessary for freindly UI on startup
            //  SelectionChanged triggers ComboCox_Criterias.SelectionChanged
            //CriteriasComboBox.SelectedIndex = 0;
            curRect = RectIssue;
            setCurComboBox(CriteriasComboBox);
        }