private void timer2_Tick(object sender, EventArgs e) { if (time1 == 40) { serialPort1.Close(); bowlers t = new bowlers(); t.Show(); timer2.Enabled = false; this.Hide(); } time1++; }
private void timer1_Tick(object sender, EventArgs e) { if (axWindowsMediaPlayer1.playState == WMPLib.WMPPlayState.wmppsStopped) { Main a = new Main(); a.Show(); Thread.Sleep(6000); this.Hide(); bowlers k = new bowlers(); k.Show(); timer1.Enabled = false; } }