Beispiel #1
0
        public static void Run(Form f,
                               StartupNextInstanceEventHandler startupHandler)
        {
            SingleInstanceApplication app = new SingleInstanceApplication();

            app.MainForm             = f;
            app.StartupNextInstance += startupHandler;
            app.Run(Environment.GetCommandLineArgs());
        }
Beispiel #2
0
 public static void Run(Form f, 
     StartupNextInstanceEventHandler startupHandler)
 { 
     SingleInstanceApplication app = new SingleInstanceApplication();
     app.MainForm = f;
     app.StartupNextInstance += startupHandler;
     app.Run(Environment.GetCommandLineArgs());
 }