Exemplo n.º 1
0
        public YBWebView()
        {
            InitializeComponent();

            StartupMode mode = PhoneApplicationService.Current.StartupMode;

            if (mode == StartupMode.Launch)
            {
                PhoneApplicationService service = PhoneApplicationService.Current;
                service.Activated   += new EventHandler <Microsoft.Phone.Shell.ActivatedEventArgs>(AppActivated);
                service.Launching   += new EventHandler <LaunchingEventArgs>(AppLaunching);
                service.Deactivated += new EventHandler <DeactivatedEventArgs>(AppDeactivated);
                service.Closing     += new EventHandler <ClosingEventArgs>(AppClosing);
            }
            else
            {
            }

            // initializes native execution logic
            this.nativeExecution = new NativeExecution(ref this.YebobBrowser);
        }
Exemplo n.º 2
0
        public YBWebView()
        {
            InitializeComponent();

            StartupMode mode = PhoneApplicationService.Current.StartupMode;

            if (mode == StartupMode.Launch)
            {
                PhoneApplicationService service = PhoneApplicationService.Current;
                service.Activated += new EventHandler<Microsoft.Phone.Shell.ActivatedEventArgs>(AppActivated);
                service.Launching += new EventHandler<LaunchingEventArgs>(AppLaunching);
                service.Deactivated += new EventHandler<DeactivatedEventArgs>(AppDeactivated);
                service.Closing += new EventHandler<ClosingEventArgs>(AppClosing);
            }
            else
            {

            }

            // initializes native execution logic
            this.nativeExecution = new NativeExecution(ref this.YebobBrowser);
        }