コード例 #1
0
        static void Main(string[] args)
        {
            ExceptionManager.RegisterHandler();
            Tools.TimingBase.TimeFromApplicationStartup();

            Logger.Start();
            GitHub.InitUpdate();
            UsageStats.LoadFile();
            CustomButtons.LoadFile();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            System.Globalization.CultureInfo ci = Settings.GetObject <System.Globalization.CultureInfo>("User Language", null);
            if (ci != null)
            {
                Thread.CurrentThread.CurrentUICulture = ci;
            }
            Tools.TaskScheduler.SetClockResolution(1);             //use a fast clock
            //Application.SetCompatibleTextRenderingDefault(false);

            Application.Run(new MainForm(args));

            GrblEmulator.WebSocketEmulator.Stop();
            Autotrace.CleanupTmpFolder();

            ComWrapper.ComLogger.StopLog();
            Logger.Stop();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: yisea123/LaserGRBL
        static void Main(string[] args)
        {
            Tools.TimingBase.TimeFromApplicationStartup();

            foreach (string arg in args)
            {
                GrblCore.WriteComLog = GrblCore.WriteComLog || arg == "comlog";
            }

            Logger.Start();
            GitHub.CleanupOldVersion();
            UsageStats.LoadFile();
            CustomButtons.LoadFile();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            System.Globalization.CultureInfo ci = (System.Globalization.CultureInfo)Settings.GetObject("User Language", null);
            if (ci != null)
            {
                System.Threading.Thread.CurrentThread.CurrentUICulture = ci;
            }

            Tools.TaskScheduler.SetClockResolution(1);             //use a fast clock
            Application.Run(new MainForm());
            GrblEmulator.WebSocketEmulator.Stop();
            Autotrace.CleanupTmpFolder();
            Logger.Stop();
        }