示例:在应用程序中通过“选项”改变程序中的控制
选择CheckBox,为其Checked属性设置ApplicationSettings。
此操作会
1.自动在Properties中的Settings.settings中添加两个属性值:CloseDocumentPrompt和CloseBatchPrompt。
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool CloseDocumentPrompt {
get {
return ((bool)(this["CloseDocumentPrompt"]));
}
set {
this["CloseDocumentPrompt"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool CloseBatchPrompt {
get {
return ((bool)(this["CloseBatchPrompt"]));
}
set {
this