示例#1
0
        static void Main()
        {
            if (WebCore.IsChildProcess)
            {
                WebCore.ChildProcessMain();
                return;
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Core.Startup();

            Application.Run(new frmMain());
        }
示例#2
0
        static void Main()
        {
            // Checks if this is a child rendering process and if so,
            // transfers control of the process to Awesomium.
            if (WebCore.IsChildProcess)
            {
                WebCore.ChildProcessMain();
                return;
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.ApplicationExit += OnApplicationExit;
            Application.Run(new WebForm());
        }
示例#3
0
        static int Main(string[] args)
        {
#if !DEBUG
            try
            {
#endif
            return(WebCore.ChildProcessMain());

#if !DEBUG
        }

        catch
        {
            // Suppress crash handler on Windows.
            return(1);
        }
#endif
        }