private void listboxTotalPosts_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     if (listboxTotalPosts.SelectedItem != null)
     {
         FormPostSummary formPostSummary = new FormPostSummary((Post)listboxTotalPosts.SelectedItem);
         formPostSummary.ShowDialog();
     }
 }
Exemple #2
0
        private void listboxTotalPosts_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            int index = this.listboxTotalPosts.IndexFromPoint(e.Location);

            if (index != System.Windows.Forms.ListBox.NoMatches)
            {
                FormPostSummary formPostSummary = new FormPostSummary(r_postAnalysis.PostsList[index]);
                formPostSummary.ShowDialog();
            }
        }