예제 #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());
        }
예제 #2
0
 private void buttonRefreshTables_Click(object sender, EventArgs e)
 {
     //force refresh of tables from Server via Rest API
     RefreshTables.updateTables(true);
 }
 private void ConnectionStrings_SelectedIndexChanged(object sender, EventArgs e)
 {
     RefreshTables.PerformClick();
 }