Example #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();
            }
        }
Example #2
0
File: Idpe.cs Project: eyedia/idpe
 static void Init()
 {
     SetupTrace.SetupTraceListners(Information.EventLogSource, Information.EventLogName);
     LoadCodeSets();
 }