Compare commits

...

2 Commits

Author SHA1 Message Date
d7ca673624 added numpad for keyboard control #5 2022-10-24 19:22:01 +02:00
d8ee002246 keyboard control #4 2022-10-24 19:19:50 +02:00
4 changed files with 32 additions and 4 deletions

View File

@ -165,6 +165,7 @@ namespace Mk0.Software.Bildduplikate
this.splitContainer1.Size = new System.Drawing.Size(776, 315);
this.splitContainer1.SplitterDistance = 388;
this.splitContainer1.TabIndex = 9;
this.splitContainer1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Form1_KeyDown);
//
// label3
//
@ -206,6 +207,7 @@ namespace Mk0.Software.Bildduplikate
this.splitContainer2.Size = new System.Drawing.Size(775, 81);
this.splitContainer2.SplitterDistance = 388;
this.splitContainer2.TabIndex = 12;
this.splitContainer2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Form1_KeyDown);
//
// Form1
//
@ -218,8 +220,10 @@ namespace Mk0.Software.Bildduplikate
this.Controls.Add(this.splitContainer1);
this.Controls.Add(this.buttonKeinDuplikat);
this.Controls.Add(this.buttonCSV);
this.KeyPreview = true;
this.Name = "Form1";
this.Text = "Bildduplikate v1.1 by kmpr.at";
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Form1_KeyDown);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
this.splitContainer1.Panel1.ResumeLayout(false);

View File

@ -153,6 +153,30 @@ namespace Mk0.Software.Bildduplikate
}
}
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.C)
{
ButtonCSV_Click(sender, e);
}
else if (e.KeyCode == Keys.D1 || e.KeyCode == Keys.NumPad1)
{
ButtonDel1_Click(sender, e);
}
else if (e.KeyCode == Keys.D2 || e.KeyCode == Keys.NumPad2)
{
ButtonDel2_Click(sender, e);
}
else if (e.KeyCode == Keys.D0 || e.KeyCode == Keys.NumPad0)
{
ButtonKeinDuplikat_Click(sender, e);
}
else if (e.KeyCode == Keys.R)
{
ButtonReload_Click(sender, e);
}
}
private void ButtonReload_Click(object sender, EventArgs e)
{
LoadDuplicates(line);

View File

@ -23,8 +23,8 @@
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>1</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.2.0.0</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled>

View File

@ -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.1.0.0")]
[assembly: AssemblyFileVersion("1.1.0.0")]
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.2.0.0")]