예제 #1
0
 private void searchValuesComboBox_TextChanged(object sender, TextChangedEventArgs E)
 {
     valueCountTextBox.Text = "";
     try
     {
         int digit = int.Parse(this.searchValuesComboBox.Text);
         this.valueCountTextBox.Text = Ex3dCalculations.ValueCount(this.values, digit).ToString("0");
     }
     catch { }
 }
예제 #2
0
        private void searchRangesComboBox_TextChanged(object sender, TextChangedEventArgs E)
        {
            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 value = int.Parse(strSearchMin);
                int digit = int.Parse(strSearchMax);
                this.rangeCountTextBox.Text = Ex3dCalculations.RangeCount(this.values, value, digit).ToString("0");
            }
            catch { }
        }
예제 #3
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     this.valuesTextBox.Text = Ex3dCalculations.ArrayToString(this.values);
 }