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

            consoleRun.Run();
        }
Exemplo n.º 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());
            }
        }
Exemplo n.º 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();
        }
Exemplo n.º 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();
        }
Exemplo n.º 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());
     }
 }
Exemplo n.º 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());
     }
 }
Exemplo n.º 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());
            }
        }
Exemplo n.º 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());
            }
        }