示例#1
0
        // Open the file on a mouse double click
        private void FileOutput_DoubleClick(object sender, MouseEventArgs e)
        {
            int index = FileOutput.IndexFromPoint(e.Location);

            if (index != System.Windows.Forms.ListBox.NoMatches)
            {
                if (!FileOutput.SelectedItem.ToString().Equals("No search results found"))
                {
                    System.Diagnostics.Process.Start(FileOutput.SelectedItem.ToString());
                }
            }
        }