本文整理汇总了C#中Microsoft.Phone.Tasks.MarketplaceReviewTask.Show方法的典型用法代码示例。如果您正苦于以下问题:C# MarketplaceReviewTask.Show方法的具体用法?C# MarketplaceReviewTask.Show怎么用?C# MarketplaceReviewTask.Show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Microsoft.Phone.Tasks.MarketplaceReviewTask
的用法示例。
在下文中一共展示了MarketplaceReviewTask.Show方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: yesButton_Click
static void yesButton_Click(object sender, RoutedEventArgs e)
{
var review = new MarketplaceReviewTask();
review.Show();
messagePrompt.Hide();
DidReview();
}
示例2: PromptUser
/// <summary>
/// Prompt the user for review
/// </summary>
public static void PromptUser()
{
Popup popup = new Popup();
popup.VerticalOffset = App.Current.Host.Content.ActualHeight / 3;
ReviewPopupControl review = new ReviewPopupControl();
popup.Child = review;
popup.IsOpen = true;
review.btnOk.Click += (s, args) =>
{
MarketplaceReviewTask task = new MarketplaceReviewTask();
task.Show();
popup.IsOpen = false;
DidReview();
};
review.btnNo.Click += (s, args) =>
{
numOfRuns = -1;
popup.IsOpen = false;
};
review.btnNever.Click += (s, args) =>
{
DidReview();
popup.IsOpen = false;
};
}
示例3: appBarButtonReview_Click
void appBarButtonReview_Click(object sender, EventArgs e)
{
MarketplaceReviewTask task = new MarketplaceReviewTask();
task.Show();
GenerateRandomCard();
}
示例4: OnNavigatedTo
protected override void OnNavigatedTo(NavigationEventArgs e)
{
base.OnNavigatedTo(e);
// NavigationService.Navigate(new Uri("/MainPage.xaml", UriKind.Relative));
if (askforReview)
{
//make sure we only ask once!
var returnvalue = MessageBox.Show("Please tell us how is the app as your reveiws matter alot to us.\nPlease Rate 5 Stars", "Please Rate 5 Stars", MessageBoxButton.OK);
if (returnvalue == MessageBoxResult.OK)
{
IsolatedStorageSettings.ApplicationSettings["done"] = true;
askforReview = false;
var marketplaceReviewTask = new MarketplaceReviewTask();
marketplaceReviewTask.Show();
}
NavigationService.GoBack();
}
else
NavigationService.GoBack();
}
示例5: Evaluar
private void Evaluar()
{
IsolatedStorageSettings configuracion = IsolatedStorageSettings.ApplicationSettings;
IsolatedStorageSettings primeraVez = IsolatedStorageSettings.ApplicationSettings;
if (!(bool)configuracion.Contains("evaluado") )
{
if ((bool)primeraVez.Contains("yes"))
{
MessageBoxResult resultado = MessageBox.Show("¿Deseas evaluar esta aplicación?", "Evaluación", MessageBoxButton.OKCancel);
if (resultado == MessageBoxResult.OK)
{
MarketplaceReviewTask evaluacionApp = new MarketplaceReviewTask();
evaluacionApp.Show();
configuracion.Add("evaluado", true);
}
}
else
{
primeraVez.Add("yes", false);
}
}
}
示例6: ReviewApplicationOnTheStore
public Task<bool> ReviewApplicationOnTheStore()
{
var marketplaceReviewTask = new MarketplaceReviewTask();
marketplaceReviewTask.Show();
return Task.FromResult(true);
}
示例7: ApplicationBarRateButton_Click
/// <summary>
/// Rate and review the app
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void ApplicationBarRateButton_Click(object sender, EventArgs e)
{
MarketplaceReviewTask task = new MarketplaceReviewTask();
task.Show();
// Dont prompt the user again
ReviewBugger.DidReview();
}
示例8: RateApp
public void RateApp()
{
config.AppRated = true;
config.TimeUnrated = TimeSpan.Zero;
App.CurrentApp.LogAnalyticEvent("RateApp");
var marketplaceReviewTask = new MarketplaceReviewTask();
marketplaceReviewTask.Show();
}
示例9: RateButton_Clicked
private void RateButton_Clicked(object sender, System.Windows.RoutedEventArgs e)
{
var mrt = new MarketplaceReviewTask();
try {
mrt.Show();
} catch (Exception) {
}
}
示例10: ShowAfterThreshold
public void ShowAfterThreshold()
{
if (NumberOfStarts == numberOfStartsThreshold &&
GetMessageBoxResult() == MessageBoxResult.OK)
{
MarketplaceReviewTask task = new MarketplaceReviewTask();
task.Show();
}
}
示例11: btn_about_Click
private void btn_about_Click(object sender, RoutedEventArgs e)
{
MessageBoxResult result = MessageBox.Show(" This Application calculates 300.000th digit of the pi number and saves time data to display the performance change of CPU \n Copyright (C) 2014 Kaan Barış BAYRAK E-Mail: [email protected] \n Special Thanks to Naz Levent for helping me to build the visual design \n You can rate this app to help developer(ME) by just clicking OK button",
"Super Pi Performance Tester", MessageBoxButton.OKCancel);
if (result == MessageBoxResult.OK)
{
MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask();
marketplaceReviewTask.Show();
}
}
示例12: Mark_Tap
private void Mark_Tap(object sender, System.Windows.Input.GestureEventArgs e)
{
try
{
MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask();
marketplaceReviewTask.Show();
}
catch (System.Exception ex)
{
}
}
示例13: ratemyapp
public void ratemyapp()
{
try
{
var rateTask = new MarketplaceReviewTask();
rateTask.Show();
}
catch
{
}
}
示例14: HyperlinkButton_Click
private void HyperlinkButton_Click(object sender, RoutedEventArgs e)
{
var s = ((ButtonBase)sender).Tag as string;
switch (s)
{
case "Review":
var task = new MarketplaceReviewTask();
task.Show();
break;
}
}
示例15: OpenStoreForReview
public void OpenStoreForReview(MarketingDesc desc)
{
#if WINDOWS_PHONE
var task = new MarketplaceReviewTask();
task.Show();
#elif UNITY_WP_8_1
async_OpenStoreForReview(desc.WP8_AppID);
#else
async_OpenStoreForReview(desc.Win8_PackageFamilyName);
#endif
}