摘要: 在解决方案中增加一窗口选择xml文件,并将名称改为app.config.其内容设置如下: 请在引用中添加-System.configuration不然程序会提示错误。在程序中就可以这样调用: private string source = System.Configuration.ConfigurationMan... 阅读全文