Example #1
0
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            FormMain fm = new FormMain();
            if (args.Length == 1 && System.IO.File.Exists(args[0]))
            {
                fm.OpenFile(args[0], false);
            }

            Application.Run(fm);
        }