You need to use the Environment.GetCommandLineArgs function to get the name of the file clicked and then open it. Something like this:-
string[] appArgs = Environment.GetCommandLineArgs();
string fileName = String.Empty;
if(args.Length >= 2)
{
fileName = args[1];
}
Put this in your Main() function.
Hope this helps