Exemple #1
0
        public static void Main(string[] args)
        {
            try
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);

                KeePass.Program.EnableTranslation = false;                 // We need English
                if (!KeePass.Program.CommonInit())
                {
                    return;
                }

                m_cfg = (TceConfig.Load() ?? new TceConfig());

                MainPriv(args);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, TuDefs.ProductName,
                                MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }

            TceConfig.Save(m_cfg);

            try { KeePass.Program.CommonTerminate(); }
            catch (Exception) { Debug.Assert(false); }
        }
Exemple #2
0
        public static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            m_cfg = (TceConfig.Load() ?? new TceConfig());

            try { MainPriv(args); }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, TuDefs.ProductName,
                                MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }

            TceConfig.Save(m_cfg);
        }