private void searchRangesComboBox_TextChanged(object sender, TextChangedEventArgs e)
 {
     rangeCountTextBox.Text = "";
     try
     {
         int    dashIndex    = this.searchRangesComboBox.Text.IndexOf('-');
         string strSearchMin = this.searchRangesComboBox.Text.Substring(0, dashIndex).Trim();
         string strSearchMax = this.searchRangesComboBox.Text.Substring(dashIndex + 1).Trim();
         int    searchMin    = Int32.Parse(strSearchMin);
         int    searchMax    = Int32.Parse(strSearchMax);
         rangeCountTextBox.Text = Ex3dCalculations.RangeCount(values, searchMin, searchMax).ToString();
     }
     catch
     {   }
 }