Ejemplo n.º 1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
            _messageCenter = new EventAggregator();
            AppContextData.CreateInstance("applicationParam.json");

            ShellBootstrapper bootstrapper = new ShellBootstrapper(MessageCenter);

            bootstrapper.Run();
        }
Ejemplo n.º 2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);



            LoginWnd.getInstance().ShowDialog();


            // The boostrapper will create the Shell instance, so the App.xaml does not have a StartupUri.
            //程序启动执行bootstrapper.Run(),在ShellBootstrapper里面会加载ShellWindows,后加载MainWindows
            ShellBootstrapper bootstrapper = new ShellBootstrapper();

            bootstrapper.Run();
        }
Ejemplo n.º 3
0
 public static void Bootstrap()
 {
     ShellBootstrapper.BootStrap();
     BootstrapNServiceBus();
 }