private void plugin_GotPostsPartial(object sender, GotPostsEventArgs e) { var plugin = sender as IPostPlugin; if (plugin != null && e.Details != null && e.Details.Count > 0) { _TempTextBox = _Host.ActiveTextBox; var dInsPost = new WndPosts(e.Details.OrderByDescending(p => p.PostDate), plugin.Name, _Host.ActiveNoteName); dInsPost.PostSelected += dInsPost_PostSelected; var showDialog = dInsPost.ShowDialog(); if (showDialog == null || !showDialog.Value) { dInsPost.PostSelected -= dInsPost_PostSelected; _TempTextBox = null; } } else { var name = plugin != null ? plugin.Name : ""; PNMessageBox.Show( PNLang.Instance.GetMessageText("no_posts", "There are no posts available") + @" [" + name + @"]", PNStrings.PROG_NAME); } }