private static void OnQuickMixPropertyChanged(object Sender, PropertyChangedEventArgs e) { if (!(e.PropertyName == "Progress") || _quickMixProgress.Progress < 100.0) { return; } NotificationArea.Instance.Add(new QuickMixNotification(ZuneUI.Shell.LoadString(StringId.IDS_QUICKMIX_NOTIFICATION_BOOTSTRAP_READY_TITLE), ZuneUI.Shell.LoadString(StringId.IDS_QUICKMIX_NOTIFICATION_BOOTSTRAP_READY_TEXT), NotificationState.Completed, true, 10000)); _quickMixProgress.PropertyChanged -= new PropertyChangedEventHandler(OnQuickMixPropertyChanged); _quickMixProgress = null; }
private static void CorePhase3Ready(int hr, bool fSuc) { if (!fSuc) { ZuneUI.Shell.ShowErrorDialog(hr, StringId.IDS_ZUNELAUNCH_ERRORTITLE, StringId.IDS_ZUNELAUNCH_COMPONENT_ERROR); ConfirmCloseDialog.ShowDefault(); } else { SingletonModelItem <WindowSnapSimulator> .Instance.Phase3Init(); Service.Phase3Initialize(); SignIn.Instance.Phase3Init(); MetadataNotifications.Instance.Phase2Init(); SingletonModelItem <UIDeviceList> .Instance.Phase2Init(); CDAccess.Phase2Catchup(); SingletonModelItem <TransportControls> .Instance.Phase2Init(); SubscriptionEventsListener.Instance.StartListening(); SoftwareUpdates.Instance.StartUp(); _interopNotifications = new InteropNotifications(); if (_interopNotifications != null) { _interopNotifications.ShowErrorDialog += new OnShowErrorDialogHandler(OnShowErrorDialog); } Download.Instance.Phase3Init(); SyncControls.Instance.Phase3Init(); PodcastCredentials.Instance.Phase2Init(); ProxyCredentials.Instance.Phase2Init(); Win7ShellManager.Instance.SubprocWindow(Application.Window.Handle); PhotoManager.Instance.SetWindowHandle(Application.Window.Handle); if (OSVersion.IsWin7()) { SingletonModelItem <ThumbBarButtons> .Instance.Phase3Init(); SingletonModelItem <JumpListManager> .Instance.JumpListPinUpdateRequested.Invoke(); } if (!QuickMix.QuickMix.Instance.IsReady) { _quickMixProgress = new QuickMixProgress(); _quickMixProgress.PropertyChanged += new PropertyChangedEventHandler(OnQuickMixPropertyChanged); } Telemetry.Instance.StartUpload(); FeaturesChanged.Instance.StartUp(); CultureHelper.CheckValidRegionAndLanguage(); ((ZuneUI.Shell)ZuneShell.DefaultInstance).ApplicationInitializationIsComplete = true; } }