示例#1
0
文件: Program.cs 项目: CPutz/MyMap
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            LoadingThread thread = new LoadingThread("input.osm.pbf");
            StartForm startForm = new StartForm();
            startForm.MapFileChosen += (object o, FileNameEventArgs fnea) => { thread = new LoadingThread(fnea.FileName); };
            Application.Run(startForm);
            if(startForm.Gebruiker > -1)
            {
                if (startForm.newUser)
                    Application.Run(new HelpForm());

                MainForm mainForm = new MainForm(startForm.UserData,
                                                 startForm.Gebruiker,
                                                 thread);
                Application.Run(mainForm);
            }
            thread.Abort();
        }
示例#2
0
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            LoadingThread thread = new LoadingThread("input.osm.pbf");
            StartForm startForm = new StartForm();
            startForm.MapFileChosen += (object o, FileNameEventArgs fnea) => { thread = new LoadingThread(fnea.FileName); };
            Application.Run(startForm);
            if(startForm.Gebruiker > -1)
            {
                if (startForm.newUser)
                    Application.Run(new HelpForm());

                MainForm mainForm = new MainForm(startForm.UserData,
                                                 startForm.Gebruiker,
                                                 thread);
                Application.Run(mainForm);
            }
            thread.Abort();
        }