private void OKClicked(object sender, MouseEventArgs e)
{
string newIP = ip.Text;
new Thread(() => testNewIP(newIP)).Start();
try { Properties.Settings.Default.maxSongs = int.Parse(maxBacklog.Text); } catch (Exception) {}
Properties.Settings.Default.alwaysOnTop = onTop.Checked;
form.TopMost = Properties.Settings.Default.alwaysOnTop;
Properties.Settings.Default.lightColor = buttons[0].inside.Color;
Properties.Settings.Default.medColor = buttons[1].inside.Color;
Properties.Settings.Default.darkColor = buttons[2].inside.Color;
Properties.Settings.Default.upvoteColor = buttons[3].inside.Color;
Properties.Settings.Default.downvoteColor = buttons[4].inside.Color;
Properties.Settings.Default.sliderColor = buttons[5].inside.Color;
Properties.Settings.Default.textColor = buttons[6].inside.Color;
Properties.Settings.Default.Save();
this.Close();
}