Fix enter key selecting next file in the grid
Properly dispose CommonOpenFileDialog
Fix some code analysis issues