コード例 #1
0
        static void Main()
        {
            string[] commandLineArgs = Environment.GetCommandLineArgs();
            if (commandLineArgs.Length > 1)
            {
                CLI.PassCLI(commandLineArgs);
                return;
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
コード例 #2
0
        static void Main()
        {
            var OsVersion = Environment.OSVersion.Version;

            if (OsVersion.Major <= 6 && OsVersion.Minor <= 1)
            {
                bOldWindows = true;
            }

            string[] commandLineArgs = Environment.GetCommandLineArgs();
            if (commandLineArgs.Length > 1)
            {
                CLI.PassCLI(commandLineArgs);
                return;
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
コード例 #3
0
        static void Main()
        {
            var OsVersion = Environment.OSVersion.Version;

            if (OsVersion.Major <= 6 && OsVersion.Minor <= 1)
            {
                bOldWindows = true;
            }
            if (Registry.CurrentUser.OpenSubKey("Software\\Wine", false) != null)
            {
                //Wine!
                bOldWindows = true;
            }
            string[] commandLineArgs = Environment.GetCommandLineArgs();
            if (commandLineArgs.Length > 1)
            {
                CLI.PassCLI(commandLineArgs);
                return;
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }