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 Joc_nou_Click(object sender, RoutedEventArgs e) { Arata_joc(); JocUtils.JocNou(); InitializareEcranJoc(); }
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); }
public GameWindow() { InitializeComponent(); if (!JocUtils.Initializat) { JocUtils.Initializare(); } joc_grid.Visibility = Visibility.Collapsed; statistici_grid.Visibility = Visibility.Collapsed; list_statistics.ItemsSource = MainWindowUtils.Jucatori; Initializare_Greseli_Litere(); }
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); }
private void btn_opreste_manele_Click(object sender, RoutedEventArgs e) { JocUtils.OpresteSunet(); }