调试时出现以下警告提示:
“System.Configuration.ConfigurationSettings.AppSettings”已过时:“"This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings。
1、解决方案添加引用System.configuration;
2、相关文件中添加 Using System.Configuration;
3、用ConfigurationManager替代ConfigurationSettings;
警告提示消除,问题解决。