private void ResetJogo() { formJogo.Dispose(); var telaGanhou = new TelaGanhou(); telaGanhou.Show(); }
private void timerWario_Tick(object sender, EventArgs e) { timerWario.Stop(); if (wario1.Visible == true && wario2.Visible == true) { pontuacao += 10; exibePontuacao.Text = Convert.ToString(pontuacao); moedinha.Visible = true; moedinhaSound.Play(); } else if (wario1.Visible == false || wario2.Visible == false) { wario1.Visible = false; wario2.Visible = false; } if (bonito1.Visible == true && bonito2.Visible == true && bowser1.Visible == true && bowser2.Visible == true && cogu1.Visible == true && cogu2.Visible == true && luigi1.Visible == true && luigi2.Visible == true && mario1.Visible == true && mario2.Visible == true && wario1.Visible == true && wario2.Visible == true) { Hide(); TelaGanhou telaGanhou = new TelaGanhou(); telaGanhou.ShowDialog(); } }