Jason, could you please explain to me what else I have to do?
Your filename will be passed as the first argument on the command line.
Check it with something like this:
static void Main(string[] args)
{
if (args.Length == 1 && System.IO.File.Exists(args[0]))
{
Application.Run(new MainWindow(args[0]));
}
else
{
Application.Run(new MainWindow(null));
}
}
......and you can handle loading the file in your application class
constructor.
-Jason