Configuration cfa = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
cfa.AppSettings.Settings["MAC"].Value = mac;

cfa.Save();

05-11 16:56