Ejemplo n.º 1
0
 private async void ExecuteRateAndReview()
 {
     await StoreLauncher.LaunchReviewAsync(AppInfo.ProductId);
 }
Ejemplo n.º 2
0
 private async void ExecuteMoreApps()
 {
     await StoreLauncher.LaunchSearchAppsByPublisherAsync(AppInfo.PublisherName);
 }
Ejemplo n.º 3
0
        private async void LaunchStoreClicked(object sender, RoutedEventArgs e)
        {
            var settingCommand = (StoreCommandsComboBox.SelectedItem as ComboBoxItem).Content as string;
            var parameter      = StoreParameterTextBox.Text;

            switch (settingCommand)
            {
            case "LaunchHome":
                await StoreLauncher.LaunchHomeAsync();

                break;

            case "LaunchTopLevelCategory":
                var category = StoreTopLevelCategory.Music;
                Enum.TryParse(parameter, out category);

                await StoreLauncher.LaunchTopLevelCategoryAsync(category);

                break;

            case "LaunchApp":
                await StoreLauncher.LaunchAppAsync(parameter);

                break;

            case "LaunchReview":
                await StoreLauncher.LaunchReviewAsync(parameter);

                break;

            case "LaunchSearchAppsByFileExtension":
                await StoreLauncher.LaunchSearchAppsByFileExtensionAsync(parameter);

                break;

            case "LaunchSearchAppsByProtocol":
                await StoreLauncher.LaunchSearchAppsByProtocolAsync(parameter);

                break;

            case "LaunchSearchAppsByTags":
                var splittedTags = parameter.Split(new [] { ',' }, StringSplitOptions.RemoveEmptyEntries);
                await StoreLauncher.LaunchSearchAppsByTagsAsync(splittedTags);

                break;

            case "LaunchSearch":
                await StoreLauncher.LaunchSearchAsync(parameter);

                break;

            case "LaunchCategory":
                var cat = StoreProductCategory.HealthFitness;
                Enum.TryParse(parameter, out cat);

                await StoreLauncher.LaunchCategoryAsync(cat);

                break;

            case "LaunchSearchAppsByPublisher":
                await StoreLauncher.LaunchSearchAppsByPublisherAsync(parameter);

                break;

            case "LaunchDownloadAndUpdates":
                await StoreLauncher.LaunchDownloadAndUpdatesAsync();

                break;

            case "LaunchSettings":
                await StoreLauncher.LaunchSettingsAsync();

                break;
            }
        }