示例#1
0
        // ========== Main ==========
        public static void Main(string[] args)
        {
            // Main:
            Application.Init();

            // Load Config:
            configGlobal = ConfigGlobal.LoadFile();

            // Classes:
            printer          = new Printer();
            Translator       = new Translator();
            htmlConverter    = new HTMLConverter();
            orderChecker     = new OrderChecker();
            wms              = WMS.GetDefaultWMS();
            mainWindow       = new MainWindow();
            mainWindow.Title = "UberDespatch " + version + " " + versionName;
            mainWindow.Show();

            // Start Threads:
            //animationThread = new Thread (new ThreadStart(AnimationLoop));
            //animationThread.Start ();
            mainThread = new Thread(new ThreadStart(Startup));
            mainThread.Start();
            apiThread = new Thread(new ThreadStart(wms.Startup));
            apiThread.Start();

            // Run:
            Application.Run();

            shutdown = true;
        }