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); } }
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); }