Example #1
0
        static int Main(string[] args)
        {
            if (Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName).Length == 1)
            {
                Program = new gMain(args);
                Application.Run(Program);


                Application.Exit();
            }

            return(0);
        }
Example #2
0
        static int Main(string[] args)
        {
            if (Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName).Length == 1)
            {
                Program = new gMain(args);
                Application.Run(Program);

                Application.Exit();

            }

            return 0;
        }