コード例 #1
0
 static void Main(string[] args)
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     _mainForm = new FormMain();
     ProcessInit.Run(_mainForm, NewInstanceHandler);
 }
コード例 #2
0
            public static void Run(Form f, StartupNextInstanceEventHandler startupHandler)
            {
                var app = new ProcessInit {
                    MainForm = f
                };

                app.StartupNextInstance += startupHandler;
                app.Run(Environment.GetCommandLineArgs());
            }