private void purinBtn_Click(object sender, EventArgs e) { this.Hide(); fM2.musicStop(); MyForm mf = new MyForm(); mf.ShowDialog(); this.Close(); }
public Game(MyForm form) { window = form; timer = new System.Timers.Timer(); movement = 3; timer.Interval = 100; timer.Elapsed += UpdateGame; timer.Start(); playingGame = false; }