Пример #1
0
        void OnApplicationStartup(object sender, StartupEventArgs e)
        {
            DispatcherUnhandledException += App_DispatcherUnhandledException;

            Program program = null;
            if (e.Args.Length >= 1)
            {
                try
                {
                    program = Program.Load(e.Args[0]);
                }
                catch (Exception ex)
                {
                    CommonExceptionHandlers.HandleException(null, ex);
                }
            }
            if (program == null)
            {
                program = new Program();
            }

            AppState.Program = program;

            var bootstrapper = new Bootstrapper();
            bootstrapper.Run();
        }
Пример #2
0
        void OnApplicationStartup(object sender, StartupEventArgs e)
        {
            var bootstrapper = new Bootstrapper();

            bootstrapper.Run();
        }
Пример #3
0
 void OnApplicationStartup(object sender, StartupEventArgs e)
 {
     var bootstrapper = new Bootstrapper();
     bootstrapper.Run();
 }