void importSearchButton_Click(object sender, RoutedEventArgs e)
 {
     int index = Utilities.ImportTools.ImportSeachData();
     this.searchSelectionComboBox.SelectedIndex = index;
     Database.CommunityArea ca = (Database.CommunityArea)this.searchSelectionComboBox.SelectedItem;
     this.communityRadio.IsChecked = true;
     PerformSearchActionForCommArea(ca);
     //
     CurrentSearch.ByCommunitySearch bcs = new CurrentSearch.ByCommunitySearch();
     bcs.CommArea = (Database.CommunityArea)this.searchSelectionComboBox.SelectedItem;
     this.loadCurrentComboBox.Items.Add(bcs.CommArea);
     if (this.loadCurrentComboBox.Items.Count > 0)
     {
         this.loadCurrentComboBox.SelectedItem = bcs.CommArea;
     }
 }
 void saveCurrentButton_Click(object sender, RoutedEventArgs e)
 {
     if (this.resultsListBox.Items.Count < 1)
     {
         MessageBox.Show("No search data to save.", "Save Current", MessageBoxButton.OK, MessageBoxImage.Information);
         return;
     }
     if (this.communityRadio.IsChecked == true)
     {
         CurrentSearch.ByCommunitySearch bcs = new CurrentSearch.ByCommunitySearch();
         bcs.CommArea = (Database.CommunityArea)this.searchSelectionComboBox.SelectedItem;
         this.loadCurrentComboBox.Items.Add(bcs.CommArea);
         if (this.loadCurrentComboBox.Items.Count > 0)
         {
             this.loadCurrentComboBox.SelectedItem = bcs.CommArea;
         }
     }
     else if (this.blockRadio.IsChecked == true)
     {
         CurrentSearch.ByBlockSearch bbs = new CurrentSearch.ByBlockSearch();
         bbs.BlockName = this.searchSelectionComboBox.SelectedItem.ToString();
         this.loadCurrentComboBox.Items.Add(bbs);
         if (this.loadCurrentComboBox.Items.Count > 0)
         {
             this.loadCurrentComboBox.SelectedItem = bbs;
         }
     }
     else
     {
         MessageBox.Show("The save current option is only available for community and block searches.", "Save Current", MessageBoxButton.OK, MessageBoxImage.Information);
     }
 }