示例#1
0
        private void OnOpenStream(object sender, RoutedEventArgs e)
        {
            StreamURLSelector streamSelector = new StreamURLSelector();

            if (streamSelector.ShowDialog().GetValueOrDefault())
            {
                openmenu.IsEnabled = false;
                Stop();
                var stream = CodecFactory.Instance.GetCodec(new Uri(streamSelector.Value));
                OpenSource(stream);
            }
        }
示例#2
0
 private void OnOpenStream(object sender, RoutedEventArgs e)
 {
     StreamURLSelector streamSelector = new StreamURLSelector();
     if (streamSelector.ShowDialog().GetValueOrDefault())
     {
         openmenu.IsEnabled = false;
         Stop();
         var stream = CodecFactory.Instance.GetCodec(new Uri(streamSelector.Value));
         OpenSource(stream);
     }
 }