private void ClearButton_Click(object sender, EventArgs e)
        {
            // clear the buckets
            for (int i = 0; i < DieRollY.Length; i++)
            {
                DieRollY[i] = 0;
            }

            for (int i = 0; i < DiceTotalY.Length; i++)
            {
                DiceTotalY[i] = 0;
            }

            // reset rolls counter
            NumberOfRolls = 0;

            // reset the chart with the zeroed buckets
            DieRollChart.Series["Die Rolls"].Points.DataBindXY(DieRollX, DieRollY);
            DiceThrowChart.Series["Dice Totals"].Points.DataBindXY(DiceTotalX, DiceTotalY);

            RollTotalLabel.Text = string.Format("{0} Total Rolls", NumberOfRolls);

            // reenable the DefaultEventListener in the library
            DiceThrow.EnableDefaultEventListener();

            // log it
            iMELLogger.LogInformation("ClearButton_Click completed.");
        }
        /// <summary>
        /// Toggle the status of the DefaultEventListener in the ETW logger to supress or enable
        /// ETW messages on attached debuggers like the Visual Studio debugger on the Output window.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void DefaultEventListenerButton_Click(object sender, EventArgs e)
        {
            // toggle the status
            DefaultEventListenerEnabled = !DefaultEventListenerEnabled;

            if (DefaultEventListenerEnabled)
            {
                DiceThrow.EnableDefaultEventListener();

                DefaultEventListenerButton.Text = "Disable DefaultEventListener";
            }
            else
            {
                // Suppress ETW DefaultEventListener messages from appearing
                // on attached debuggers. They will still be logged by the EventListenerStub's
                // iMELLogger in Program.cs, but won't appear Visual Studio Output window twice.
                DiceThrow.DisableDefaultEventListener();

                DefaultEventListenerButton.Text = "Enable DefaultEventListener";
            }
        }