예제 #1
0
        protected override void OnStartup(object sender, StartupEventArgs e)
        {
            base.OnStartup(sender, e);

            jumpList = Container.Resolve <JumpListIntegration>();

            SetAwesomiumDefaults();

            DumpIconsForDocuments();

            ExtendCaliburn();

            Container.Resolve <IEventAggregator>().Publish(new AppReadyEvent());

            // Handle the original arguments from the first run of this app.
            var activationArguments = AppDomain.CurrentDomain.SetupInformation.ActivationArguments;

            if (activationArguments == null || activationArguments.ActivationData == null)
            {
                ((App)Application).HandleArguments(Environment.GetCommandLineArgs());
            }
            else
            {
                ((App)Application).HandleArguments(activationArguments.ActivationData);
            }
        }
예제 #2
0
        protected override void OnStartup(object sender, StartupEventArgs e)
        {
            base.OnStartup(sender, e);

            jumpList = Container.Resolve <JumpListIntegration>();

            SetAwesomiumDefaults();

            DumpIconsForDocuments();

            ExtendCaliburn();

            Container.Resolve <IEventAggregator>().Publish(new AppReadyEvent());

            // Handle the original arguments from the first run of this app.
            ((App)Application).HandleArguments(Environment.GetCommandLineArgs());
        }