Add setting for default status

This commit is contained in:
2021-12-20 17:50:58 -05:00
parent 0c8ec51660
commit 18aae0cef3
8 changed files with 109 additions and 25 deletions

View File

@@ -169,6 +169,15 @@ namespace WorkIndicator.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to _Default status:.
/// </summary>
public static string DefaultStatus {
get {
return ResourceManager.GetString("DefaultStatus", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Delete.
/// </summary>

View File

@@ -244,4 +244,7 @@
<data name="CheckUpdate" xml:space="preserve">
<value>_Check for Update</value>
</data>
<data name="DefaultStatus" xml:space="preserve">
<value>_Default status:</value>
</data>
</root>

View File

@@ -12,7 +12,7 @@ namespace WorkIndicator.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.5.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.0.3.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
@@ -64,5 +64,17 @@ namespace WorkIndicator.Properties {
this["WindowPatterns"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("Free")]
public string DefaultStatus {
get {
return ((string)(this["DefaultStatus"]));
}
set {
this["DefaultStatus"] = value;
}
}
}
}

View File

@@ -14,5 +14,8 @@
<Setting Name="WindowPatterns" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="DefaultStatus" Type="System.String" Scope="User">
<Value Profile="(Default)">Free</Value>
</Setting>
</Settings>
</SettingsFile>