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());
            }
        }
Example #2
0
        static void Main(string[] args)
        {
            // Console.WriteLine("Hello World!");
            var consoleRun = new ConsoleRun(args);

            consoleRun.Run();
        }
Example #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());
            }
        }
Example #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();
        }
Example #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();
        }
Example #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());
     }
 }
Example #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());
     }
 }
Example #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());
            }
        }
Example #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());
            }
        }