public NumericCounterEditor(NumericCounter counter) { InitializeComponent(); ForeColor = ThemeColorTable.ForeColor; BackColor = ThemeColorTable.BackgroundColor; ThemeUpdateControls.UpdateControls(this); _counter = counter; _oldStepValue = (int)numericUpDownStep.Value; }
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; }