Ejemplo n.º 1
0
 private void listsong_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         // int hitungpanjangstring = listsong.SelectedItems[0].Text.Length;//Hitung Panjang String
         string file = listsong.SelectedItems[0].Text;
         edu.EduMusic(Application.StartupPath + @"\Data\Music\" + file, true);
         Educlass.loadlastmusic = file;
         lab_musicplayed.Text   = file;
     }
     catch (Exception)
     {
         return;
     }
 }
Ejemplo n.º 2
0
        private void Challange()
        {
            Random Ttc = new Random();

            call = Ttc.Next(1, 50);//Random Kemungkinan Challange 1 - 50
            Random timecha = new Random();

            timechallange = timecha.Next(10, 20); //Random Waktu Challange
            //=================== POLICE LINE =====================
            if (call <= 10)                       // Kemungkinan Mendapatkan Soal Challange 10/50
            {
                tmr_challange.Start();
                Edu.EduMusic(Application.StartupPath + @"\Data\SFX\Bonus_Level.wav", true);
                lab_tmr.Visible    = true;
                lab_challange.Text = "Answer Under " + Convert.ToString(timechallange) + " second";
                tmr_bar.Dispose();//Hentikan Waktu Progressbar Ketika Challange
            }
            else
            {
                timechallange      = 0; //Reset Waktu Challange
                lab_tmr.Visible    = false;
                lab_challange.Text = "No Challange Yet !! Keep Focus..";
            }
        }