public Form1() { InitializeComponent(); Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; Thread.CurrentThread.CurrentUICulture = CultureInfo.InvariantCulture; btnChooseFileSrc.Tag = tbSrcMap; main = new MainIO(false); }
static void Main(String[] args) { if (args.Length == 4) { Application.SetCompatibleTextRenderingDefault(false); MainIO main = new MainIO(true); main.readMapFile(args[0]); main.createRegionPatchFile(args[1], args[2], args[3], true, true, true, true, true, true); main.close(); } else { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } }