Exemplo n.º 1
0
        /// <summary>
        /// Playing from ListBox
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>

        /*public void PlayFromContext(object sender, RoutedEventArgs e)
         * {
         *  timer.Stop();
         *  RadioPlayer.Play(StationsStorage.urlRadios[RadioList.SelectedIndex].url, 50);
         *  SetNameRadio(StationsStorage.urlRadios[RadioList.SelectedIndex].name);
         *  TextBlockPlaying.Opacity = 1;
         *  timer.Start();
         * }*/

        public void PlayComm(object sender, RoutedEventArgs e)
        {
            timer.Stop();
            RadioPlayer.Play(StationsStorage.urlRadios[needUrlIndex].url, 50);
            SetNameRadio(StationsStorage.urlRadios[needUrlIndex].name);
            TextBlockPlaying.Opacity = 1;
            timer.Start();
            SelectedName.Text = "";
            RadioPlayer.GetTagsFromCurrentURLStream(RadioPlayer.Stream);
            TextBlockTagTrack.Text = RadioPlayer.tag;
        }
Exemplo n.º 2
0
 public void ClickOk(object sender, RoutedEventArgs e)
 {
     RadioPlayer.Play(RadioUrl.Text, 50);
     this.Close();
 }