コード例 #1
0
        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;
            }
            }
        }
コード例 #2
0
        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);
        }