예제 #1
0
        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();
            }
        }
예제 #2
0
파일: Idpe.cs 프로젝트: eyedia/idpe
 static void Init()
 {
     SetupTrace.SetupTraceListners(Information.EventLogSource, Information.EventLogName);
     LoadCodeSets();
 }