void Form1_KeyDown(object sender, KeyEventArgs e) { switch (e.KeyCode) { case Keys.Right: next(); break; case Keys.Left: prev(); break; case Keys.Escape: case Keys.F: this.Close(); break; case Keys.I: Information info = new Information(files[i]); info.Show(); break; } }
private void info_Click(object sender, EventArgs e) { Information info = new Information(files[i]); info.Show(); }