private void btnUpdateCaseAvailCount_Click(object sender, RoutedEventArgs e)
        {
            if (trvZipCodes.SelectedItems != null && trvZipCodes.SelectedItems.Count > 0)
            {
                RadTreeViewItem item = trvZipCodes.SelectedItems[0] as RadTreeViewItem;

                if (((string)item.Tag) == "State")
                {
                    ZipGeoCodeService.UpdateStatsForState(((string)item.Header).Substring(0, 2));
                    GridSelectedZipCodes.ItemsSource = ZipGeoCodeService.GetForState(((string)item.Header).Substring(0, 2), (float)_selectedDealer.Latitude, (float)_selectedDealer.Longitude, (float)_selectedDealer.MaxDistance);
                    GridSelectedZipCodes.Rebind();
                    SelectZipCodes();
                }
                else
                {
                    ZipGeoCodeService.UpdateStatsForZipPart(((string)item.Header).Substring(0, 3));
                    GridSelectedZipCodes.ItemsSource = ZipGeoCodeService.GetForZipPart((string)item.Header, (float)_selectedDealer.Latitude, (float)_selectedDealer.Longitude, (float)_selectedDealer.MaxDistance);
                    SelectZipCodes();
                }
            }
        }
        private void trvZipCodes_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            // Get a reference to the treeview
            Telerik.Windows.Controls.RadTreeView treeView = sender as Telerik.Windows.Controls.RadTreeView;
            // Get the currently selected items
            ObservableCollection <Object> selectedItems = treeView.SelectedItems;

            if (treeView.SelectedItems != null && treeView.SelectedItems.Count > 0)
            {
                RadTreeViewItem item = selectedItems[0] as RadTreeViewItem;

                if (((string)item.Tag) == "State")
                {
                    GridSelectedZipCodes.ItemsSource = ZipGeoCodeService.GetForState(((string)item.Header).Substring(0, 2), (float)_selectedDealer.Latitude, (float)_selectedDealer.Longitude, (float)_selectedDealer.MaxDistance);
                    SelectZipCodes();
                }
                else
                {
                    GridSelectedZipCodes.ItemsSource = ZipGeoCodeService.GetForZipPart((string)item.Header, (float)_selectedDealer.Latitude, (float)_selectedDealer.Longitude, (float)_selectedDealer.MaxDistance);
                    SelectZipCodes();
                }
            }
        }