static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Palette.Init(); if (args.Count() > 0) { FormView view = new FormView(args[0]); view.ShowDialog(); return; } Application.Run(new FormMain()); }