private void Control_Loaded(object sender, RoutedEventArgs e) { if (string.IsNullOrEmpty(this.GameFeatureId)) { BlueStacks.Common.Stats.SendCommonClientStatsAsync("onboarding-tutorial", "client_impression", this.ParentWindow.mVmName, this.PackageName, "", "", ""); } this.mBrowser = new BrowserControl(); this.mBrowser.BrowserLoadCompleteEvent += new System.Action(this.BrowserLoadCompleteEvent); if (!string.IsNullOrEmpty(this.GameFeatureId)) { this.mBrowser.InitBaseControl(BlueStacksUIUtils.GetGameFeaturePopupUrl(this.PackageName, this.GameFeatureId), 0.0f); this.mCloseOnboardingGrid.Visibility = Visibility.Visible; } else { this.mBrowser.InitBaseControl(BlueStacksUIUtils.GetOnboardingUrl(this.PackageName, this.InitiatedSource), 0.0f); } this.mBrowser.Visibility = Visibility.Visible; this.mBrowser.ParentWindow = this.ParentWindow; this.mBrowserGrid.Children.Add((UIElement)this.mBrowser); this.controlGrid = this.AddBrowser(); this.controlGrid.Visibility = Visibility.Visible; this.mBrowserGrid.Children.Add((UIElement)this.controlGrid); if (!string.IsNullOrEmpty(this.GameFeatureId)) { return; } this.dispatcherTimer = new DispatcherTimer(); this.dispatcherTimer.Tick += new EventHandler(this.DispatcherTimer_Tick); this.dispatcherTimer.Interval = new TimeSpan(0, 0, PostBootCloudInfoManager.Instance.mPostBootCloudInfo.OnBoardingInfo.OnBoardingSkipTimer); this.dispatcherTimer.Start(); }