Example #1
0
        private void logsBox_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            int selectedIndex = logsBox.IndexFromPoint(e.Location);

            if (selectedIndex != ListBox.NoMatches)
            {
                LBItemDetail logDetais = new LBItemDetail(((SListBoxItem)logsBox.Items[selectedIndex]).Text);
                //logDetais.ldRichTextBox
                logDetais.ShowDialog();
            }
        }
Example #2
0
 private void logsBox_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     int selectedIndex = logsBox.IndexFromPoint(e.Location);
     if (selectedIndex != ListBox.NoMatches)
     {
         LBItemDetail logDetais = new LBItemDetail(((SListBoxItem)logsBox.Items[selectedIndex]).Text);
         //logDetais.ldRichTextBox
         logDetais.ShowDialog();
     }
 }