static void Main( string[] cmdLineArgs) { Trace.WriteLine("Starting application", "DEBUG"); Form svgViewerForm; if (cmdLineArgs.Length > 0) { Trace.WriteLine("Getting initial file from command line: " + cmdLineArgs[0], "DEBUG"); svgViewerForm = new SvgViewerForm(cmdLineArgs[0]); } else { svgViewerForm = new SvgViewerForm(); } Application.Run(svgViewerForm); }