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());
     }
 }
Beispiel #2
0
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     main.close();
 }