Exemple #1
0
 private void searchValuesComboBox_TextChanged(object sender, TextChangedEventArgs e)
 {
     valueCountTextBox.Text = "";
     try
     {
         int searchValue = Int32.Parse(searchValuesComboBox.Text);
         valueCountTextBox.Text = Ex3dCalculations.ValueCount(values, searchValue).ToString();
     } catch { }
 }
Exemple #2
0
        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    min          = Int32.Parse(strSearchMin);
                int    max          = Int32.Parse(strSearchMax);

                rangeCountTextBox.Text = Ex3dCalculations.RangeCount(values, min, max).ToString();
            } catch { }
        }
Exemple #3
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     valuesTextBox.Text = Ex3dCalculations.ArrayToString(values);
 }