implemented auto reload from api #11

This commit is contained in:
Manuel Kamper 2022-10-31 18:04:05 +01:00
parent 4ee53f2fda
commit 8a22d68fb2
4 changed files with 10 additions and 5 deletions

View File

@ -35,7 +35,7 @@
<value>False</value>
</setting>
<setting name="imagesFromAPI" serializeAs="String">
<value>500</value>
<value>100</value>
</setting>
</Mk0.Software.Bildduplikate.Properties.Settings>
</userSettings>

View File

@ -255,13 +255,18 @@ namespace Mk0.Software.Bildduplikate
}
else
{
UIElementsVisible(false);
if (api)
{
ButtonAPILoad_Click(null, null);
if (Duplicates.Count > lineDup)
{
UIElementsVisible(false);
MessageBox.Show("Alle Duplikate von API abgearbeitet", "Fertig!", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
else
{
UIElementsVisible(false);
MessageBox.Show("Alle Duplikate in CSV abgearbeitet", "Fertig!", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}

View File

@ -121,7 +121,7 @@ namespace Mk0.Software.Bildduplikate.Properties {
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("500")]
[global::System.Configuration.DefaultSettingValueAttribute("100")]
public int imagesFromAPI {
get {
return ((int)(this["imagesFromAPI"]));

View File

@ -27,7 +27,7 @@
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="imagesFromAPI" Type="System.Int32" Scope="User">
<Value Profile="(Default)">500</Value>
<Value Profile="(Default)">100</Value>
</Setting>
</Settings>
</SettingsFile>