private static void Main(string[] args)
        {
            PlatformID platform = Environment.OSVersion.Platform;

            if (platform == PlatformID.Unix || platform == PlatformID.MacOSX)
            {
                var consoleRun = new ConsoleRun(args);
                consoleRun.Run();
                return;
            }
#if DEBUG
            //Application.Run(new SelfDefiningConfigForm());
            //return;
#endif
            if (args.Length > 0)
            {
                AttachConsole(ATTACH_PARENT_PROCESS);
                var consoleRun = new ConsoleRun(args);
                consoleRun.Run();
            }
            else
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new MainForm());
            }
        }
示例#2
0
        static void Main(string[] args)
        {
            // Console.WriteLine("Hello World!");
            var consoleRun = new ConsoleRun(args);

            consoleRun.Run();
        }
示例#3
0
        private static void Main(string[] args)
        {
            PlatformID platform = Environment.OSVersion.Platform;
            if (platform == PlatformID.Unix || platform == PlatformID.MacOSX)
            {
                var consoleRun = new ConsoleRun(args);
                consoleRun.Run();
                return;
            }
#if DEBUG

            //Application.Run(new SelfDefiningConfigForm());
            //return;
#endif
            if (args.Length > 0)
            {
                AttachConsole(ATTACH_PARENT_PROCESS);
                var consoleRun = new ConsoleRun(args);
                consoleRun.Run();
            }
            else
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new MainForm());
            }
        }
示例#4
0
        static void Main(string[] args)
        {
            //Console.WriteLine("Hello World!");
            //var cj = Helpers.DictionaryHelper.GetResourceContent("Cangjie5.txt");
            //Console.WriteLine(cj);
            var consoleRun = new ConsoleRun(args, Help);

            consoleRun.Run();
        }
示例#5
0
        static void Main(string[] args)
        {
            Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
            //Console.WriteLine("Hello World!");
            //var cj = Helpers.DictionaryHelper.GetResourceContent("Cangjie5.txt");
            //Console.WriteLine(cj);
            var consoleRun = new ConsoleRun(args, Help);

            consoleRun.Run();
        }
示例#6
0
 private static void Main(string[] args)
 {
     if (args.Length > 0)
     {
         AttachConsole(ATTACH_PARENT_PROCESS);
         var consoleRun = new ConsoleRun(args);
         consoleRun.Run();
     }
     else
     {
         Application.EnableVisualStyles();
         Application.SetCompatibleTextRenderingDefault(false);
         Application.Run(new MainForm());
     }
 }
示例#7
0
 private static void Main(string[] args)
 {
     if (args.Length > 0)
     {
         AttachConsole(ATTACH_PARENT_PROCESS);
         var consoleRun = new ConsoleRun(args);
         consoleRun.Run();
     }
     else
     {
         Application.EnableVisualStyles();
         Application.SetCompatibleTextRenderingDefault(false);
         Application.Run(new MainForm());
     }
 }
示例#8
0
        private static void Main(string[] args)
        {
#if DEBUG
            //Application.Run(new SelfDefiningConfigFormExport());
            //return;
#endif
            if (args.Length > 0)
            {
                AttachConsole(ATTACH_PARENT_PROCESS);
                var consoleRun = new ConsoleRun(args);
                consoleRun.Run();
            }
            else
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new MainForm());
            }
        }
示例#9
0
        private static void Main(string[] args)
        {
            #if DEBUG

            //Application.Run(new SelfDefiningConfigFormExport());
            //return;
            #endif
            if (args.Length > 0)
            {
                AttachConsole(ATTACH_PARENT_PROCESS);
                var consoleRun = new ConsoleRun(args);
                consoleRun.Run();
            }
            else
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new MainForm());
            }
        }