public void SwitchToPurchasedLibrary() { // Switch to the purchased library LibraryProviderSelector libraryProviderSelector = currentLibraryDataView.CurrentLibraryProvider.GetRootProvider() as LibraryProviderSelector; if (libraryProviderSelector != null) { currentLibraryDataView.CurrentLibraryProvider = libraryProviderSelector.GetPurchasedLibrary(); } }
public void SwitchToPurchasedLibrary() { // Switch to the purchased library LibraryProviderSelector libraryProviderSelector = CurrentLibraryDataView.CurrentLibraryProvider.GetRootProvider() as LibraryProviderSelector; if (libraryProviderSelector != null) { LibraryProvider purchaseProvider = libraryProviderSelector.GetPurchasedLibrary(); UiThread.RunOnIdle(() => { CurrentLibraryDataView.CurrentLibraryProvider = purchaseProvider; }); } }