private void btnSimpleFractionExample_DivisorPush_Click(object sender, EventArgs e) { long value = 0; if (!long.TryParse(txtSimpleFractionExampleDivisor.Text, out value)) { MessageBox.Show(String.Format("'{0}' is not a valid value.", txtSimpleFractionExampleDivisor.Text), "Warning"); } else { counterHelper.IncrementBaseBy(SingleInstance_PerformanceCounters.SimpleFractionExample, value); //counterHelper.Increment(SingleInstance_PerformanceCounters.AverageCountExampleBase); } }