static void Main()
        {
            // show control panel
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            SettingsForm controlPanel = new SettingsForm();

            controlPanel.Show();

            // start terrain viewer
            TerrainForm form = new TerrainForm();

            form.Initialize(controlPanel);
            form.Show();
            try
            {
                Application.Run(form);
            }
            catch (Exception ex)
            {
                MessageBox.Show("Application exception. \n\n" + ex);
                return;
            }
        }
        static void Main()
        {
            // show control panel
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            SettingsForm controlPanel = new SettingsForm();
            controlPanel.Show();

            // start terrain viewer
            TerrainForm form = new TerrainForm();
            form.Initialize(controlPanel);
            form.Show();
            try
            {
                Application.Run(form);
            }
            catch (Exception ex)
            {
                MessageBox.Show("Application exception. \n\n" + ex);
                return;
            }
        }