/// <summary> /// Create a dialog where the user can add a URL. /// It will parse pls and m3u files and extract the URLs used /// for streaming audio. /// </summary> /// <param name="callback"> /// The function to be called when the URL has been parsed in case /// the window was closed before parsing was finished /// </param> public OpenURL(URLParsed finishCallback) { callback = finishCallback; InitializeComponent(); inputDelay.Interval = new TimeSpan(0, 0, 1); inputDelay.Tick += new EventHandler(inputDelay_Tick); URLs = new List<TrackData>(); IsParsing = false; }
/// <summary> /// Create a dialog where the user can add a URL. /// It will parse pls and m3u files and extract the URLs used /// for streaming audio. /// </summary> /// <param name="callback"> /// The function to be called when the URL has been parsed in case /// the window was closed before parsing was finished /// </param> public OpenURL(URLParsed finishCallback) { callback = finishCallback; InitializeComponent(); inputDelay.Interval = new TimeSpan(0, 0, 1); inputDelay.Tick += new EventHandler(inputDelay_Tick); URLs = new List <TrackData>(); IsParsing = false; }