コード例 #1
0
 public void OnKeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         Mission_Mode missionmode = new Mission_Mode();
         missionmode.Owner = this;
         this.Close();
         missionmode.ShowDialog();
     }
 }
コード例 #2
0
 private void next_Click(object sender, EventArgs e)
 {
     counter++;
     if (counter == 1)
     {
         story1.Hide();
         story2.Show();
         story3.Hide();
     }
     else if (counter == 2)
     {
         story1.Hide();
         story2.Hide();
         story3.Show();
     }
     else if (counter == 3)
     {
         Mission_Mode missionmode = new Mission_Mode();
         missionmode.Owner = this;
         missionmode.Show();
     }
     this.Controls.Add(story2);
     this.Controls.Add(story3);
 }