public void ShowComments(Podcast podcast) { Comment[] comments; if (Podcasts.GetPodcastComments(podcast.id, out comments)) { wnd_comments = new CommentsWindow(podcast, comments, this); wnd_comments.ShowDialog(wnd_player); } }
public void PublishComment(Podcast podcast, string action, Dictionary <string, string> fields, string name, string mail, string url, string comment) { if (Podcasts.WriteComment(action, fields, name, mail, url, comment)) { wnd_commentwrite.Close(); } Comment[] comments; if (Podcasts.GetPodcastComments(podcast.id, out comments) && wnd_comments != null) { wnd_comments.SetComments(comments); } }