Beispiel #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
            Application.ThreadException += new ThreadExceptionEventHandler(ExceptionHandler);
            Ambient.Configure(new StaticAmbientDataProvider());
            SqlDbSession session = new SqlDbSession("OrderingDev");

            Ambient.DbSession = session;
            OrderingRepositories.Configure(new SqlOrderingRepositories(session));
            Application.Run(new MDIMain());
        }