ThoNohT.NohBoard.Forms.MouseSpeedStyleForm.MouseSpeedStyleForm_Load C# (CSharp) Method

MouseSpeedStyleForm_Load() private method

Loads the form, setting the controls to the initial style.
private MouseSpeedStyleForm_Load ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void MouseSpeedStyleForm_Load(object sender, EventArgs e)
        {
            // Mouse speed indicator
            this.defaultMouseSpeed.IndicatorStyle = this.initialStyle ?? this.defaultStyle;
            this.chkOverwrite.Checked = this.initialStyle != null;
            this.defaultMouseSpeed.Enabled = this.chkOverwrite.Checked;

            // Only add the event handler after the initial style has been set.
            this.defaultMouseSpeed.IndicatorStyleChanged += this.defaultMouseSpeed_IndicatorStyleChanged;
        }