public App()
        {
            log("handle exceptions");

            this.DispatcherUnhandledException += App_DispatcherUnhandledException;

            log("get storage dir");

            GetStorageDir(true, true);

            log("upgradecheck");

            mUpgradeCheck = new UpgradeCheck();
            mUpgradeCheck.Start();

            log("continue...");
        }
Exemple #2
0
        public static void Main(string[] args)
        {
            SplashScreen splash = null;

            try
            {
                //we have to manage the splash screen ourselves, due to a bug in the splashscreen
                //Win32Exception when activating main form on Win XP.
                splash = new SplashScreen("splash.png");
                splash.Show(false);
            }
            catch (Exception)
            {
                //whatever
            }

            App app = new App();

            app.InitializeComponent();

            mUpgradeCheck = new UpgradeCheck();
            mUpgradeCheck.Start();

            closeSplash(splash);

            if (args.Length > 0)
            {
                var m = _commandRegex.Match(args[0]);
                if (m.Success)
                {
                    Command = m.Groups[1].Value;
                }
            }

            app.Run();
        }
        public static void Main(string[] args)
        {
            SplashScreen splash = null;
            try
            {
                //we have to manage the splash screen ourselves, due to a bug in the splashscreen
                //Win32Exception when activating main form on Win XP.
                splash = new SplashScreen("splash.png");
                splash.Show(false);
            }
            catch (Exception)
            {
                //whatever
            }

            App app = new App();
            app.InitializeComponent();

            mUpgradeCheck = new UpgradeCheck();
            mUpgradeCheck.Start();

            closeSplash(splash);

            if (args.Length > 0)
            {
                var m = _commandRegex.Match(args[0]);
                if (m.Success)
                {
                    Command = m.Groups[1].Value;
                }
            }

            app.Run();
        }