Exemple #1
0
 private void MusicLoop4()
 {
     while (true)
     {
         startMusic[4] = new StartAndStopMusic(5);
         startMusic[4].MusicStart();
         Thread.Sleep(delaySec[4] * 100);
         startMusic[4].MusicStop();
     }
 }
 public bool BtnNumClick(int musicNum)
 {
     if (!state)
     {
         Button(musicNum + 1); //파일은 1부터니까
         return(false);
     }
     else
     {
         if (startMusic[musicNum] != null)
         {
             Stop(musicNum);
         }
         startMusic[musicNum] = new StartAndStopMusic(musicNum + 1);
         startMusic[musicNum].MusicStart();
         return(true);
     }
 }