private void StartAndStopBtnEvent()
        {
            startAndStopButton.Opacity = 1;

            if ((string)startAndStopLabel.Content == "STOP")
            {
                StopNavCursor();
                Label[]  labels = new Label[] { timelabel_0, timelabel_1, timelabel_2, timelabel_3, timelabel_4 };
                TimeSpan ts     = new TimeSpan(0, 0, 0);
                foreach (var label in labels)
                {
                    label.Content = ts.Minutes.ToString() + ":" + ts.Seconds.ToString();
                    ts           += new TimeSpan(0, 0, 20);
                }
                for (int i = 0; i < 5; i++)
                {
                    if (!isCheckedBool[i])
                    {
                        Loop(i);
                    }
                }
            }
            else
            {
                StartNavCursor();
            }
            string btnContent = loopStationCode.BtnStartClick();

            startAndStopLabel.Content = btnContent;
            if (btnContent == "STOP")
            {
                StartAndStopMusic startAndStopMusic = new StartAndStopMusic(-1);
                musicSec[0] = startAndStopMusic.GetMusicSec(1);
                musicSec[1] = startAndStopMusic.GetMusicSec(2);
                musicSec[2] = startAndStopMusic.GetMusicSec(3);
                musicSec[3] = startAndStopMusic.GetMusicSec(4);
                musicSec[4] = startAndStopMusic.GetMusicSec(5);
            }
            else if (btnContent == "START")
            {
                StopNavCursor();
                for (int i = 0; i < 5; i++)
                {
                    if (!isCheckedBool[i])
                    {
                        Loop(i);
                    }
                }
            }
        }
 public void MusicLoop(int musicNum)
 {
     while (!isCheckedBool[musicNum])
     {
         startMusic[musicNum] = new StartAndStopMusic(musicNum + 1);
         startMusic[musicNum].MusicStart();
         Dispatcher.Invoke(() =>
         {
             AddBeat(musicNum + 1, musicSec[musicNum]);
         });
         Thread.Sleep(delaySec[musicNum] * 100);
         startMusic[musicNum].MusicStop();
     }
 }