BlottoBeats.Client.AdvancedSettings.exitClicked C# (CSharp) Method

exitClicked() private method

private exitClicked ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
return void
        private void exitClicked(object sender, MouseEventArgs e)
        {
            form.lightColor = new SolidBrush(Properties.Settings.Default.lightColor);
            form.medColor = new SolidBrush(Properties.Settings.Default.medColor);
            form.darkColor = new SolidBrush(Properties.Settings.Default.darkColor);
            form.upvoteColor = new SolidBrush(Properties.Settings.Default.upvoteColor);
            form.downvoteColor = new SolidBrush(Properties.Settings.Default.downvoteColor);
            form.sliderColor = new SolidBrush(Properties.Settings.Default.sliderColor);
            form.textColor = new SolidBrush(Properties.Settings.Default.textColor);
            form.lightInline.Brush = new SolidBrush(Properties.Settings.Default.lightColor);
            form.lightOutline.Brush = new SolidBrush(Properties.Settings.Default.lightColor);
            updateAllButtons();
            this.Close();
        }