예제 #1
0
        private void button2_Click(object sender, RoutedEventArgs e)
        {
            MarketplaceDetailTask marketplaceDetailTask = new MarketplaceDetailTask();


            marketplaceDetailTask.Show();
        }
예제 #2
0
 private void btnCollectorTry_Tap(object sender, System.Windows.Input.GestureEventArgs e)
 {
     MarketplaceDetailTask task = new MarketplaceDetailTask();
     task.ContentType = MarketplaceContentType.Applications;
     task.ContentIdentifier = "8864cfd0-bc46-4a72-a3bd-bc2156b967de";
     task.Show();
 }
예제 #3
0
 private void qualifyme(object sender, System.Windows.Input.GestureEventArgs e)
 {
     MarketplaceDetailTask market = new MarketplaceDetailTask() {
         ContentType = MarketplaceContentType.Applications,
         ContentIdentifier = "a43d8c5a-8bfc-4cf0-9744-b78468f41e9f"
     };
 }
예제 #4
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            MarketplaceDetailTask mar = new Microsoft.Phone.Tasks.MarketplaceDetailTask();

            mar.ContentIdentifier = "fd7c46dc-50bc-4e41-8e91-9814d85fcdf4";
            mar.Show();
        }
        private void BuyAppForSyncBoxDismissed(object sender, DismissedEventArgs e)
        {
            if (!e.Result.Equals(CustomMessageBoxResult.LeftButton)) return;

            var buyAppTask = new MarketplaceDetailTask();
            buyAppTask.Show();
        }
예제 #6
0
 private void PurchaseButton_Click(object sender, RoutedEventArgs e)
 {
     // pop up the link to rate and review the app
     MarketplaceDetailTask purchase = new MarketplaceDetailTask();
     purchase.ContentIdentifier = "5d5cebe9-420a-4566-a468-04c94aa34d93";
     purchase.ContentType = MarketplaceContentType.Applications;
     purchase.Show();
 }
예제 #7
0
        private void RateApp_Click(object sender, EventArgs e)
        {
            MarketplaceDetailTask oMarketPlaceDetailTask = new MarketplaceDetailTask();

            oMarketPlaceDetailTask.ContentIdentifier = "1decc864-d239-436c-863c-a7b5f3427924";
            oMarketPlaceDetailTask.ContentType = MarketplaceContentType.Applications;
            oMarketPlaceDetailTask.Show();
        }
 private void btnBuyNow_Click(object sender, RoutedEventArgs e)
 {
     MarketplaceDetailTask marketplaceDetailTask = new MarketplaceDetailTask();
     marketplaceDetailTask.ContentType = MarketplaceContentType.Applications;
     marketplaceDetailTask.ContentIdentifier = "f4c51a4a-35ef-4e72-a5c5-f9c8d0a4ebbd";
     marketplaceDetailTask.Show();
     this.ClosePopup();
 }
예제 #9
0
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     var task = new MarketplaceDetailTask
     {
         ContentIdentifier = "ce8cbd60-f7b5-4a1b-afa4-8f91e38ddbf0",
         ContentType = MarketplaceContentType.Applications
     };
     task.Show();
 }
예제 #10
0
        public void ShowDetailApp()
        {
            MarketplaceDetailTask marketplaceDetailTask = new MarketplaceDetailTask();

            marketplaceDetailTask.ContentIdentifier = "e502d52f-32bb-45b3-85b2-769ba36b82ef";
            marketplaceDetailTask.ContentType = MarketplaceContentType.Applications;

            marketplaceDetailTask.Show();
        }
예제 #11
0
		public void OpenStore(MarketingDesc desc)
		{
			#if WINDOWS_PHONE
			var task = new MarketplaceDetailTask();
			task.Show();
			#elif UNITY_WP_8_1
			async_OpenStore(desc.WP8_AppID);
			#else
			async_OpenStore(desc.Win8_PackageFamilyName);
			#endif
		}
예제 #12
0
 private void BuyAddFreeVersionButton_Click(object sender, System.Windows.RoutedEventArgs e)
 {
     try
     {
         var task = new MarketplaceDetailTask { ContentIdentifier = "9558e8d2-08b9-4464-9a40-5b27e25a3ced" };
         task.Show();
     }
     catch
     {
     }
 }
 private void DetailsButton_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         MarketplaceDetailTask marketplaceDetailTask = new MarketplaceDetailTask();
         marketplaceDetailTask.Show();
     }
     catch (InvalidOperationException ex)
     {
         // user probably double-clicked the button before navigation occurred - do nothing
     }
 }
예제 #14
0
 private void BuyAddFreeVersionButton_Click(object sender, System.Windows.RoutedEventArgs e)
 {
     try
     {
         MarketplaceDetailTask task = new MarketplaceDetailTask();
         task.ContentIdentifier = "60070dfd-ac08-4018-b6cf-9ccda9806158";
         task.Show();
     }
     catch
     {
         // double clicking might cause an error
     }
 }
예제 #15
0
        private void _btnBuyNow_Click(object sender, RoutedEventArgs e)
        {
#if FAKESTORE
            if (MessageBox.Show("Here we would send you to the app store.\nDo you want to simulate activation?", "Fake App Store", MessageBoxButton.OKCancel) == MessageBoxResult.OK)
            {
                var x = ((App)Application.Current);
                x.DoFakeActivete();
            }
#else
            MarketplaceDetailTask marketplaceDetailTask = new MarketplaceDetailTask();
            marketplaceDetailTask.Show();
#endif
        }
예제 #16
0
 public void ShowAfterThreshold(int starts)
 {
     if ((starts == numberOfStartsThreshold) && GetMessageBoxResult() == MessageBoxResult.OK)
     {
         try
         {
             var task = new MarketplaceDetailTask { ContentIdentifier = "9558e8d2-08b9-4464-9a40-5b27e25a3ced" };
             task.Show();
         }
         catch
         {
         }
     }
 }
예제 #17
0
 public void ShowAfterThreshold(int starts)
 {
     if ((starts == numberOfStartsThreshold) && GetMessageBoxResult() == MessageBoxResult.OK)
     {
         try
         {
             var task = new MarketplaceDetailTask { ContentIdentifier = "60070dfd-ac08-4018-b6cf-9ccda9806158" };
             task.Show();
         }
         catch
         {
         }
     }
 }
예제 #18
0
        private void Refresh_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            try
            {
                MarketplaceDetailTask marketplaceDetailTask = new MarketplaceDetailTask();

                marketplaceDetailTask.ContentIdentifier = "380eeee6-2040-4a3a-bae2-0f09939aea77";
                marketplaceDetailTask.ContentType = MarketplaceContentType.Applications;

                marketplaceDetailTask.Show();
            }
            catch (System.Exception ex)
            {
            }
        }
예제 #19
0
 private void PurchaseButton_Click(object sender, RoutedEventArgs e)
 {
     // pop up the link to rate and review the app
     if (App.IsTrial)
     {
         MarketplaceDetailTask marketplaceDetailTask = new MarketplaceDetailTask();
         marketplaceDetailTask.ContentIdentifier = "5d5cebe9-420a-4566-a468-04c94aa34d93";
         marketplaceDetailTask.ContentType = MarketplaceContentType.Applications;
         marketplaceDetailTask.Show();
     }
     else
     {
         // Let people review.
         MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask();
         marketplaceReviewTask.Show();
     }
 }
예제 #20
0
 private void PurchaseButton_Click(object sender, RoutedEventArgs e)
 {
     // pop up the link to rate and review the app
     if (App.IsTrial)
     {
         MarketplaceDetailTask marketplaceDetailTask = new MarketplaceDetailTask();
         marketplaceDetailTask.ContentIdentifier = "da41187b-c86f-44bb-820b-b4b8aee4cd25";
         marketplaceDetailTask.ContentType = MarketplaceContentType.Applications;
         marketplaceDetailTask.Show();
     }
     else
     {
         // Let people review.
         MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask();
         marketplaceReviewTask.Show();
     }
 }
예제 #21
0
        public static void Download(string appId)
        {
            if (!string.IsNullOrEmpty(appId))
            {
                MarketplaceDetailTask task = new MarketplaceDetailTask();
                task.ContentIdentifier = appId;
                task.Show();

                //IAppService service = new AppService();
                //service.Download(appId, uid, x =>
                //{

                //}, x => { });
            }
            else
            {
                OkrToast.Show("近期上线,敬请期待。");
            }
        }
예제 #22
0
 private void CrossPromotionSmallPrice_Click(object sender, RoutedEventArgs e)
 {
     var card = ((FrameworkElement)sender).DataContext as BaseCard;
       var crossPromotionSmall = card as CrossPromotionSmall;
       if (crossPromotionSmall != null && !String.IsNullOrWhiteSpace(crossPromotionSmall.AppId)) {
     Appboy.SharedInstance.EventLogger.LogFeedCardClick(crossPromotionSmall.Id);
     var marketplaceDetailTask = new MarketplaceDetailTask {
       ContentIdentifier = crossPromotionSmall.AppId,
       ContentType = MarketplaceContentType.Applications
     };
     marketplaceDetailTask.Show();
       }
 }
예제 #23
0
        private void Paid_Click(object sender, EventArgs e)
        {
            MarketplaceDetailTask marketTask = new MarketplaceDetailTask();
            marketTask.ContentIdentifier = "0940431a-2eec-4d19-bed6-41379538da76";
            marketTask.ContentType = MarketplaceContentType.Applications;

            marketTask.Show();
        }
예제 #24
0
        private void TonalityRedux_Click(object sender, EventArgs e)
        {
            MarketplaceDetailTask marketTask = new MarketplaceDetailTask();
            marketTask.ContentIdentifier = "bc0a81ec-f48e-4f02-84f0-4a041afa86da";
            marketTask.ContentType = MarketplaceContentType.Applications;

            marketTask.Show();
        }
예제 #25
0
 private void btn_Recommend_Click(object sender, EventArgs e)
 {
     MarketplaceDetailTask marketplaceDetailTask = new MarketplaceDetailTask();
     marketplaceDetailTask.Show();
 }
예제 #26
0
 public void SendUserToMarketplace()
 {
     var detailTask = new MarketplaceDetailTask();
     detailTask.Show();
 }
예제 #27
0
 public static void ShowBuyDialog()
 {
     Deployment.Current.Dispatcher.BeginInvoke(() =>
     {
         var result = MessageBox.Show(Localization.Resources.AskBuyFullVersion, "", MessageBoxButton.OKCancel);
         if (result == MessageBoxResult.OK)
         {
             var task = new MarketplaceDetailTask();
             task.ContentType = MarketplaceContentType.Applications;
             task.ContentIdentifier = "8644cfe4-1629-43f0-8869-4d6684a7cfcb";
             task.Show();
         }
     });
 }
예제 #28
0
        // prompt to buy
        private void purchase(object sender, GestureEventArgs e)
        {
            MessageBox.Show(AppResources.PurchasePrompt);

            MarketplaceDetailTask marketplaceDetailTask = new MarketplaceDetailTask();

            marketplaceDetailTask.ContentIdentifier = "94db675a-1c4d-4dca-a2a3-519fa6ac60a6";
            marketplaceDetailTask.ContentType = MarketplaceContentType.Applications;

            marketplaceDetailTask.Show();
        }
예제 #29
0
 private void ApplicationBarMenuItem_Click_1(object sender, EventArgs e)
 {
     MarketplaceDetailTask marketplaceDetailTask = new MarketplaceDetailTask();
     marketplaceDetailTask.ContentIdentifier = "79e16d86-a739-44fd-942e-c7fdf26cdc22";
     marketplaceDetailTask.Show();
 }
        private void TrialBlocker_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
           var button = MessageBox.Show("Press \"ok\" to view this app in the marketplace","Trial Expired", MessageBoxButton.OKCancel);

           if (button == MessageBoxResult.OK)
           {
               MarketplaceDetailTask marketPlaceDetailTask = new MarketplaceDetailTask();
               marketPlaceDetailTask.Show();
           }
        }
 //            private static void CheckLicense()
 //            {
 //#if DEBUG
 //                string message = "This sample demonstrates the implementation of a trial mode in an application." +
 //                                   "Press 'OK' to simulate trial mode. Press 'Cancel' to run the application in normal mode.";
 //                if (MessageBox.Show(message, "Debug Trial",
 //                     MessageBoxButton.OKCancel) == MessageBoxResult.OK)
 //                {
 //                    _isTrial = true;
 //                }
 //                else
 //                {
 //                    _isTrial = false;
 //                }
 //#else
 //            _isTrial = _info.IsTrial();
 //#endif
 //            }
 public static void BuyApplication()
 {
     MarketplaceDetailTask _marketPlaceDetailTask = new MarketplaceDetailTask();
     _marketPlaceDetailTask.Show();
 }