Beispiel #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //TODO attribution: http://www.codeproject.com/Articles/100199/Smart-Hotkey-Handler-NET
            SmartHotKey.HotKey hotKeyManager = new SmartHotKey.HotKey();
            hotKeyManager.AddHotKey("Control+Shift+S");
            hotKeyManager.AddHotKey("Control+Shift+D");

            hotKeyManager.HotKeyPressed += new SmartHotKey.HotKey.HotKeyEventHandler(hotKeyManager_HotKeyPressed);

            RefreshTables.updateTables();

            ApplicationUtils.checkForUpdates("RiskApps3.exe");

            ApplicationUtils.checkFirstLogin();

            #if international
            string region = RiskApps3.Utilities.Configurator.getNodeValue("globals", "CultureRegion");

            if (string.IsNullOrEmpty(region) == false)
            {
                CultureInfo culture = new CultureInfo(region);
                Thread.CurrentThread.CurrentCulture = culture;
                Thread.CurrentThread.CurrentUICulture = culture;

            }
            #endif
            //then if authenticate, show main form
            Application.Run(new MainForm());
        }
Beispiel #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //TODO attribution: http://www.codeproject.com/Articles/100199/Smart-Hotkey-Handler-NET
            SmartHotKey.HotKey hotKeyManager = new SmartHotKey.HotKey();
            hotKeyManager.AddHotKey("Control+Shift+S");
            hotKeyManager.AddHotKey("Control+Shift+D");

            hotKeyManager.HotKeyPressed += new SmartHotKey.HotKey.HotKeyEventHandler(hotKeyManager_HotKeyPressed);

            RefreshTables.updateTables();

            ApplicationUtils.checkForUpdates("RiskApps3.exe");

            ApplicationUtils.checkFirstLogin();

#if international
            string region = RiskApps3.Utilities.Configurator.getNodeValue("globals", "CultureRegion");

            if (string.IsNullOrEmpty(region) == false)
            {
                CultureInfo culture = new CultureInfo(region);
                Thread.CurrentThread.CurrentCulture   = culture;
                Thread.CurrentThread.CurrentUICulture = culture;
            }
#endif
            //then if authenticate, show main form
            Application.Run(new MainForm());
        }