Example #1
0
        /// <summary>
        /// Fired when played track changes
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void spotHandler_TrackChanged(object sender, TrackChangedEventArgs e)
        {
            try
            {
                if (String.IsNullOrEmpty(e.track) || String.IsNullOrWhiteSpace(e.track))
                {
                    stopRecording();
                }
                else
                {
                    // Replace not allowed chars
                    e.track = System.Text.RegularExpressions.Regex.Replace(e.track, replaceRegex, "");

                    recordTrack(SpotHandler.getSpotTrackObject(e.track));
                }
            }
            catch (Exception ex)
            {
                System.Windows.Forms.MessageBox.Show(ex.ToString());
            }
        }
Example #2
0
 // onTrackChanged Event
 protected void onTrackChanged(object sender, TrackChangedEventArgs e)
 {
     if (TrackChanged != null)
         TrackChanged(sender, e);
 }