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