implemented #27
This commit is contained in:
parent
ca035abae6
commit
9c62348c7c
|
@ -38,6 +38,7 @@ namespace Mk0.Software.Bildduplikate
|
|||
this.buttonSave = new System.Windows.Forms.Button();
|
||||
this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.checkBoxAutoLoad = new System.Windows.Forms.CheckBox();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
|
@ -60,7 +61,7 @@ namespace Mk0.Software.Bildduplikate
|
|||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(12, 88);
|
||||
this.label2.Location = new System.Drawing.Point(12, 67);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(75, 13);
|
||||
this.label2.TabIndex = 2;
|
||||
|
@ -68,14 +69,14 @@ namespace Mk0.Software.Bildduplikate
|
|||
//
|
||||
// textBoxPath1
|
||||
//
|
||||
this.textBoxPath1.Location = new System.Drawing.Point(15, 104);
|
||||
this.textBoxPath1.Location = new System.Drawing.Point(15, 83);
|
||||
this.textBoxPath1.Name = "textBoxPath1";
|
||||
this.textBoxPath1.Size = new System.Drawing.Size(206, 20);
|
||||
this.textBoxPath1.TabIndex = 3;
|
||||
//
|
||||
// textBoxPath2
|
||||
//
|
||||
this.textBoxPath2.Location = new System.Drawing.Point(15, 143);
|
||||
this.textBoxPath2.Location = new System.Drawing.Point(15, 122);
|
||||
this.textBoxPath2.Name = "textBoxPath2";
|
||||
this.textBoxPath2.Size = new System.Drawing.Size(206, 20);
|
||||
this.textBoxPath2.TabIndex = 4;
|
||||
|
@ -83,7 +84,7 @@ namespace Mk0.Software.Bildduplikate
|
|||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(12, 127);
|
||||
this.label3.Location = new System.Drawing.Point(12, 106);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(29, 13);
|
||||
this.label3.TabIndex = 5;
|
||||
|
@ -101,7 +102,7 @@ namespace Mk0.Software.Bildduplikate
|
|||
//
|
||||
// numericUpDown1
|
||||
//
|
||||
this.numericUpDown1.Location = new System.Drawing.Point(248, 104);
|
||||
this.numericUpDown1.Location = new System.Drawing.Point(248, 83);
|
||||
this.numericUpDown1.Maximum = new decimal(new int[] {
|
||||
1000,
|
||||
0,
|
||||
|
@ -124,17 +125,28 @@ namespace Mk0.Software.Bildduplikate
|
|||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(245, 88);
|
||||
this.label4.Location = new System.Drawing.Point(245, 67);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(228, 13);
|
||||
this.label4.TabIndex = 8;
|
||||
this.label4.Text = "Amount of images loaded per request from API:";
|
||||
//
|
||||
// checkBoxAutoLoad
|
||||
//
|
||||
this.checkBoxAutoLoad.AutoSize = true;
|
||||
this.checkBoxAutoLoad.Location = new System.Drawing.Point(246, 122);
|
||||
this.checkBoxAutoLoad.Name = "checkBoxAutoLoad";
|
||||
this.checkBoxAutoLoad.Size = new System.Drawing.Size(179, 17);
|
||||
this.checkBoxAutoLoad.TabIndex = 9;
|
||||
this.checkBoxAutoLoad.Text = "Load images from API on startup";
|
||||
this.checkBoxAutoLoad.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// API
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(476, 180);
|
||||
this.Controls.Add(this.checkBoxAutoLoad);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.numericUpDown1);
|
||||
this.Controls.Add(this.buttonSave);
|
||||
|
@ -168,5 +180,6 @@ namespace Mk0.Software.Bildduplikate
|
|||
private System.Windows.Forms.Button buttonSave;
|
||||
private System.Windows.Forms.NumericUpDown numericUpDown1;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.CheckBox checkBoxAutoLoad;
|
||||
}
|
||||
}
|
|
@ -12,6 +12,7 @@ namespace Mk0.Software.Bildduplikate
|
|||
textBoxPath1.Text = Properties.Settings.Default.ReplacePath;
|
||||
textBoxPath2.Text = Properties.Settings.Default.ReplaceWith;
|
||||
numericUpDown1.Value = Properties.Settings.Default.imagesFromAPI;
|
||||
checkBoxAutoLoad.Checked = Properties.Settings.Default.autoload;
|
||||
}
|
||||
|
||||
private void ButtonSave_Click(object sender, EventArgs e)
|
||||
|
@ -20,6 +21,7 @@ namespace Mk0.Software.Bildduplikate
|
|||
Properties.Settings.Default.ReplacePath = textBoxPath1.Text.Trim();
|
||||
Properties.Settings.Default.ReplaceWith = textBoxPath2.Text.Trim();
|
||||
Properties.Settings.Default.imagesFromAPI = (int)numericUpDown1.Value;
|
||||
Properties.Settings.Default.autoload = checkBoxAutoLoad.Checked;
|
||||
Properties.Settings.Default.Save();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,6 +37,9 @@
|
|||
<setting name="imagesFromAPI" serializeAs="String">
|
||||
<value>100</value>
|
||||
</setting>
|
||||
<setting name="autoload" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
</Mk0.Software.Bildduplikate.Properties.Settings>
|
||||
</userSettings>
|
||||
<runtime>
|
||||
|
|
|
@ -260,7 +260,7 @@ namespace Mk0.Software.Bildduplikate
|
|||
this.MinimumSize = new System.Drawing.Size(1000, 590);
|
||||
this.Name = "Main";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "Bildduplikate v1.7 by kmpr.at";
|
||||
this.Text = "Bildduplikate v1.8 by kmpr.at";
|
||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Main_FormClosing);
|
||||
this.Shown += new System.EventHandler(this.Main_Shown);
|
||||
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Form1_KeyDown);
|
||||
|
|
|
@ -697,6 +697,11 @@ namespace Mk0.Software.Bildduplikate
|
|||
Left = Properties.Settings.Default.lastLeft;
|
||||
}
|
||||
}
|
||||
|
||||
if (Properties.Settings.Default.autoload && Properties.Settings.Default.ApiUrl != String.Empty)
|
||||
{
|
||||
ButtonAPILoad_Click(null, null);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<ApplicationRevision>0</ApplicationRevision>
|
||||
<ApplicationVersion>1.7.0.0</ApplicationVersion>
|
||||
<ApplicationVersion>1.8.0.0</ApplicationVersion>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<PublishWizardCompleted>true</PublishWizardCompleted>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
|
|
|
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
|
||||
// indem Sie "*" wie unten gezeigt eingeben:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.7.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.7.0.0")]
|
||||
[assembly: AssemblyVersion("1.8.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.8.0.0")]
|
||||
|
|
|
@ -130,5 +130,17 @@ namespace Mk0.Software.Bildduplikate.Properties {
|
|||
this["imagesFromAPI"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
||||
public bool autoload {
|
||||
get {
|
||||
return ((bool)(this["autoload"]));
|
||||
}
|
||||
set {
|
||||
this["autoload"] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,5 +29,8 @@
|
|||
<Setting Name="imagesFromAPI" Type="System.Int32" Scope="User">
|
||||
<Value Profile="(Default)">100</Value>
|
||||
</Setting>
|
||||
<Setting Name="autoload" Type="System.Boolean" Scope="User">
|
||||
<Value Profile="(Default)">False</Value>
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
Loading…
Reference in New Issue