예제 #1
0
        static void Main(string[] args)
        {
            //--
            //FutureDev: make sure user has sufficient priviledges to open files and run SUSHI.

            //--initialize settings
            SushiSettingsUtil.LoadSushiSettings();

            //--command line args
            parseArgs(args);
            if (GlobalVars.AutoStartBackup)
            {
                AutoBackup.StartBackup();
                return;
            }

            //--windows init stuff
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException); //note: don't want to add this handler when starting from commandline, because we don't want to try and show a message box.

            //--Splash screen
            //SplashScreen.Definstance = new SplashScreen();
            //SplashScreen.Definstance.Show();
            //Application.DoEvents();

            //--kick off main Form of SUSHI
            MainForm.DefInstance = new MainForm();
            Application.Run(MainForm.DefInstance);
        }