示例#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();
        }
示例#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();
        }