예제 #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 Joc_nou_Click(object sender, RoutedEventArgs e)
        {
            Arata_joc();

            JocUtils.JocNou();

            InitializareEcranJoc();
        }
예제 #3
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);
        }
예제 #4
0
        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();
        }
예제 #5
0
        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);
        }
예제 #6
0
 private void btn_opreste_manele_Click(object sender, RoutedEventArgs e)
 {
     JocUtils.OpresteSunet();
 }