/// <summary> /// Load times for the Ball animation /// </summary> /// <param name="plLyrics"></param> public void LoadBallsTimes(List <plLyric> plLyrics) { if (plLyrics.Count > 0) { LyricsTimes = new List <int>(); plLyric.Types plType = plLyric.Types.Text; int plTime = 0; for (int i = 0; i < plLyrics.Count; i++) { plType = plLyrics[i].Type; plTime = plLyrics[i].TicksOn; if (plType == plLyric.Types.Text) { LyricsTimes.Add(plTime); } } picBalls.LoadTimes(LyricsTimes); // FAB 26/10/16 picBalls.Start(); } }
public static string plTypeToString(plLyric.Types plType) { switch (plType) { case plLyric.Types.Text: return("text"); case plLyric.Types.LineFeed: return("cr"); case plLyric.Types.Paragraph: return("par"); default: return("text"); } }