void Form1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Delete) { DialogResult result = MessageBox.Show("Bild " + Path.GetFileName(s_Imagefilename) + " löschen ? ", this.Text, MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (result == DialogResult.Yes) { File.Delete(s_Imagefilename); s_ImageFilenames.RemoveAt(s_IndexImage); FormFactory.NextImage(); FormFactory.ResetForm(); } } else if ((e.KeyCode == Keys.S)) { FormFactory.PreviousImage(); } else if ((e.KeyCode == Keys.D)) { FormFactory.NextImage(); } }
private void button6_Click(object sender, EventArgs e) { FormFactory.PreviousImage(); }
private void button7_Click(object sender, EventArgs e) { FormFactory.NextImage(); }