Example #1
0
 public NumericCounterEditor(NumericCounter counter)
 {
     InitializeComponent();
     ForeColor = ThemeColorTable.ForeColor;
     BackColor = ThemeColorTable.BackgroundColor;
     ThemeUpdateControls.UpdateControls(this);
     _counter      = counter;
     _oldStepValue = (int)numericUpDownStep.Value;
 }
Example #2
0
        private void Go_Click(object sender, EventArgs e)
        {
            var counter = new NumericCounter()
            {
                Text = this.TextArea.Text
            };

            counter.Compute();
            this.Stat.Text = $"Count of numbers: {counter.Count}; Sum of numbers: {counter.Summa}";
        }
 public NumericCounterEditor(NumericCounter counter)
 {
     InitializeComponent();
     _counter      = counter;
     _oldStepValue = (int)numericUpDownStep.Value;
 }