private void Status_joc() { switch (JocUtils.GetStatusJoc()) { case Joc.StatusJoc.Castigat: { uri = new Uri("../../Resurse/Sunete/BineMa.mp3", UriKind.Relative); JocUtils.StartSunet(uri); MessageBox.Show("BINE MAAA!!!", "BOMBA!", MessageBoxButton.OK); Disable_litere(); JocUtils.SfarsitJoc(); break; } case Joc.StatusJoc.Pierdut: { uri = new Uri("../../Resurse/Sunete/AiGrijaFraiere.mp3", UriKind.Relative); JocUtils.StartSunet(uri); MessageBox.Show($"Sa-ti fie rusine!!\nCuvantu' era: {JocUtils.JocCurent.Cuvant}.", "Ti-ai Luat-o!", MessageBoxButton.OK); Disable_litere(); JocUtils.SfarsitJoc(); break; } } }
private void Afara_din_ghencea_Click(object sender, RoutedEventArgs e) { JocUtils.SfarsitJoc(); Window window = new MainWindow(); window.Show(); Close(); JocUtils.OpresteSunet(); uri = new Uri("../../Resurse/Sunete/TepupPaPa.mp3", UriKind.Relative); JocUtils.StartSunet(uri); }
private void btn_start_manele_Click(object sender, RoutedEventArgs e) { Uri maneaUri = new Uri("../../Resurse/Sunete/Florin Salam Sistem.mp3", UriKind.Relative); JocUtils.StartSunet(maneaUri); }