예제 #1
0
파일: Form1.cs 프로젝트: ddakev/MineSweeper
 private void какСеИграеF1ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Form4 subForm = new Form4(this);
     subForm.ShowDialog();
 }
예제 #2
0
파일: Form1.cs 프로젝트: ddakev/MineSweeper
 public void f_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.F2) new_game();
     else if (e.KeyCode == Keys.Escape) this.Close();
     else if (e.KeyCode == Keys.F3) { Form2 subForm = new Form2(this); subForm.ShowDialog(); }
     else if (e.KeyCode == Keys.F4) { Form3 subForm = new Form3(this); subForm.ShowDialog(); }
     else if (e.KeyCode == Keys.F1) { Form4 subForm = new Form4(this); subForm.ShowDialog(); }
 }