static void Main(string[] args) { if (Environment.OSVersion.Version.Major >= 6) { SetProcessDPIAware(); } if (!CheckSqlCe()) { return; } Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); try { // Debugger.Launch(); GetDummyUser(); SetupTrace.SetupTraceListners(Information.EventLogSource, Information.EventLogName); EncryptConfigs(); Application.Run(new MainWindow(args)); //Application.Run(new Test()); //GetDummyUser(); //Application.Run(new SreEnvironmentWindow()); } catch (Exception ex) { MessageBox.Show(ex.Message); Trace.TraceError(ex.ToString()); Trace.Flush(); } }
static void Init() { SetupTrace.SetupTraceListners(Information.EventLogSource, Information.EventLogName); LoadCodeSets(); }