Refactor GQL code. Auto load and save active shops. Auto start monitors.

This commit is contained in:
Patrick Fic
2020-01-20 15:42:59 -08:00
parent bc5cb13113
commit fa75c58633
11 changed files with 166 additions and 68 deletions

View File

@@ -114,6 +114,15 @@ namespace BodyshopUploader.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to Auto-start Monitors.
/// </summary>
public static string Label_AutoStartMonitor {
get {
return ResourceManager.GetString("Label_AutoStartMonitor", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to File Path.
/// </summary>
@@ -168,6 +177,15 @@ namespace BodyshopUploader.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to Error uploading job..
/// </summary>
public static string Msg_NewJobUploadError {
get {
return ResourceManager.GetString("Msg_NewJobUploadError", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Password.
/// </summary>

View File

@@ -135,6 +135,9 @@
<data name="Label_AddMonitoringPath" xml:space="preserve">
<value>Add Path</value>
</data>
<data name="Label_AutoStartMonitor" xml:space="preserve">
<value>Auto-start Monitors</value>
</data>
<data name="Label_FilePath" xml:space="preserve">
<value>File Path</value>
</data>
@@ -153,6 +156,9 @@
<data name="Msg_NewJobUploaded" xml:space="preserve">
<value>New Job Uploaded</value>
</data>
<data name="Msg_NewJobUploadError" xml:space="preserve">
<value>Error uploading job.</value>
</data>
<data name="Password" xml:space="preserve">
<value>Password</value>
</data>

View File

@@ -68,5 +68,29 @@ namespace BodyshopUploader.Properties {
this["AutoStartMonitors"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string LastSelectedShop {
get {
return ((string)(this["LastSelectedShop"]));
}
set {
this["LastSelectedShop"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool AutoStartMonitor {
get {
return ((bool)(this["AutoStartMonitor"]));
}
set {
this["AutoStartMonitor"] = value;
}
}
}
}

View File

@@ -14,5 +14,11 @@
<Setting Name="AutoStartMonitors" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="LastSelectedShop" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="AutoStartMonitor" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
</Settings>
</SettingsFile>