コード例 #1
0
        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();
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
 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();
 }
コード例 #5
0
 public static void ShowNewSourceDialog()
 {
     NewSourceDialog dlg = new NewSourceDialog();
     dlg.ShowDialog();
 }
コード例 #6
0
        public static void ShowNewSourceDialog()
        {
            NewSourceDialog dlg = new NewSourceDialog();

            dlg.ShowDialog();
        }