private void searchValuesComboBox_TextChanged(object sender, TextChangedEventArgs e)
 {
     valueCountTextBox.Text = "";
     try
     {   
         this.searchValuesComboBox.Text = int.Parse(searchValues;
         this.valueCountTextBox.Text = Ex3dCalculations.ValueCount(values, searchValue).ToString;
     }
     catch
     {
         rangeCountTextBox.Text = "";
         MessageBox.Show("Invalid input");
     }
 }
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     this.valuesTextBox.Text = Ex3dCalculations.ArrayToString(this.values);
 }