static void Main()
        {
            // Changes the CurrentCulture of the current thread to the invariant culture.
            Thread.CurrentThread.CurrentCulture = new CultureInfo("", false);

            int processor = 1;
            foreach (ProcessThread thread in Process.GetCurrentProcess().Threads)
            {
                thread.ProcessorAffinity = (IntPtr)processor;
            }

            // Initialize logging
            if (!Directory.Exists(ConfigFolder))
                Directory.CreateDirectory(ConfigFolder);
            if (!Directory.Exists(LogFolder))
                Directory.CreateDirectory(LogFolder);
            LogUtil.InitializeLogging(Path.Combine(ConfigFolder, "LogConfig.xml"), "DefaultLogConfig.xml", FallbackLogfile);

            TerrainGenerator terrainGenerator = new TerrainGenerator();

            terrainGenerator.Show();

            terrainGenerator.Start();
        }
 public SetAssetRepositoryDialog(TerrainGenerator app)
 {
     this.app = app;
     InitializeComponent();
 }