예제 #1
0
파일: OpenURL.xaml.cs 프로젝트: uQr/stoffi
 /// <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;
 }
예제 #2
0
 /// <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;
 }