using System.Windows; namespace ytLive; /// Asked when a PRIVATE broadcast ends — the same contract as the recording's save /// dialog (creator ruling 2026-10-09): Enter keeps it on YouTube as a private video, /// Escape deletes it. DialogResult == true = keep; false (Delete, Escape, the X) /// = delete. public partial class KeepBroadcastDialog : Window { public KeepBroadcastDialog(string title) { InitializeComponent(); MessageText.Text = string.IsNullOrWhiteSpace(title) ? "Your private broadcast is on YouTube as a private video. Keep it, or delete it?" : $"\u201c{title}\u201d is on YouTube as a private video. Keep it, or delete it?"; Loaded += (_, _) => KeepBroadcastButton.Focus(); } private void Keep_Click(object sender, RoutedEventArgs e) => DialogResult = true; private void Delete_Click(object sender, RoutedEventArgs e) => DialogResult = false; }