public static void ShowNewSourceDialog(string streamURL = null, string streamName = null)
        {
            NewSourceDialog dlg = new NewSourceDialog();

            if (!string.IsNullOrWhiteSpace(streamURL))
            {
                dlg.tbStreamURL.Text = streamURL;
            }
            if (!string.IsNullOrWhiteSpace(streamName))
            {
                dlg.tbSourceName.Text = streamName;
            }
            dlg.ShowDialog();
        }
        private void btnAddRRFeed_Click(object sender, RoutedEventArgs e)
        {
            FrameworkElement fe = e.Source as FrameworkElement;

            if (fe == null)
            {
                return;
            }
            RadioLog.Broadcastify.FeedItemHolder holder = fe.DataContext as RadioLog.Broadcastify.FeedItemHolder;
            if (holder == null)
            {
                return;
            }
            DialogResult = true;
            NewSourceDialog.ShowNewSourceDialog(holder.FeedURL, holder.FeedName);
        }
        private void btnAddFeed_Click(object sender, RoutedEventArgs e)
        {
            FrameworkElement fe = e.Source as FrameworkElement;

            if (fe == null)
            {
                return;
            }
            FoundFeedHolder holder = fe.DataContext as FoundFeedHolder;

            if (holder == null)
            {
                return;
            }
            DialogResult = true;
            NewSourceDialog.ShowNewSourceDialog(holder.FeedURL);
        }
 public static void ShowNewSourceDialog(string streamURL = null, string streamName = null)
 {
     NewSourceDialog dlg = new NewSourceDialog();
     if (!string.IsNullOrWhiteSpace(streamURL))
     {
         dlg.tbStreamURL.Text = streamURL;
     }
     if (!string.IsNullOrWhiteSpace(streamName))
     {
         dlg.tbSourceName.Text = streamName;
     }
     dlg.ShowDialog();
 }
 public static void ShowNewSourceDialog()
 {
     NewSourceDialog dlg = new NewSourceDialog();
     dlg.ShowDialog();
 }
Exemple #6
0
        public static void ShowNewSourceDialog()
        {
            NewSourceDialog dlg = new NewSourceDialog();

            dlg.ShowDialog();
        }