private void addToWhitelist_Click(object sender, EventArgs e) { SkypeChatPicker scp = new SkypeChatPicker(skype); DialogResult result = scp.ShowDialog(); if (result == DialogResult.OK) { Properties.Settings.Default.Whitelist.Add(scp.selectedChat); Properties.Settings.Default.Save(); loadListBoxes(whiteList); } scp.Close(); }