在configuration节点添加:
<userSettings> <WpfSmartClientStarter.Properties.Settings> <setting name="FTPPassword" serializeAs="String"> <value>dm189</value> </setting> </WpfSmartClientStarter.Properties.Settings> </userSettings>
在cs文件中读取:
string FTPPassword = WpfSmartClientStarter.Properties.Settings.Default["FTPPassword"].ToString();