private async void BuyNewGameCommandHandler(object arg) { await LicenseInformationStore.Buy(); var messageDialog = new MessageDialog(LicenseInformationStore.PurchaseResult, "Darts Score Master"); await messageDialog.ShowAsync(); Activate(null); }
private async void LicenseInformationLicenseChanged() { var licenceInfo = await LicenseInformationStore.Get(); if (licenceInfo.IsTrial && !licenceInfo.IsActive) { var messageDialog = new MessageDialog("Your trial has expired, you will be returned to the main screen where you can purchase a full licence.", "Darts Score Master"); await messageDialog.ShowAsync(); BackCommandHandler(null); } }
protected async Task <LicenseInformation> GetLicenceInformation() { return(await LicenseInformationStore.Get()); }