private void button2_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(currentDir)) { Form4 f = new Form4(); f.Show(); } else { Fullscreen openForm = new Fullscreen(); openForm.Show(); } }
private void button2_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F5) { if (string.IsNullOrEmpty(currentDir)) { Form4 f = new Form4(); f.Show(); } else { Fullscreen openForm = new Fullscreen(); openForm.Show(); } } }