本文整理匯總了C#中Microsoft.Phone.Tasks.MarketplaceReviewTask類的典型用法代碼示例。如果您正苦於以下問題:C# MarketplaceReviewTask類的具體用法?C# MarketplaceReviewTask怎麽用?C# MarketplaceReviewTask使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
MarketplaceReviewTask類屬於Microsoft.Phone.Tasks命名空間,在下文中一共展示了MarketplaceReviewTask類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: appBarButtonReview_Click
void appBarButtonReview_Click(object sender, EventArgs e)
{
MarketplaceReviewTask task = new MarketplaceReviewTask();
task.Show();
GenerateRandomCard();
}
示例2: yesButton_Click
static void yesButton_Click(object sender, RoutedEventArgs e)
{
var review = new MarketplaceReviewTask();
review.Show();
messagePrompt.Hide();
DidReview();
}
示例3: Feedback
public Feedback()
{
InitializeComponent();
// Initialize the SaveRingtoneTask and assign the Completed handler in the page constructor.
ReviewTask = new MarketplaceReviewTask();
}
示例4: 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;
};
}
示例5: 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();
}
示例6: 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);
}
}
}
示例7: ReviewApplicationOnTheStore
public Task<bool> ReviewApplicationOnTheStore()
{
var marketplaceReviewTask = new MarketplaceReviewTask();
marketplaceReviewTask.Show();
return Task.FromResult(true);
}
示例8: 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();
}
示例9: RateApp
public void RateApp()
{
config.AppRated = true;
config.TimeUnrated = TimeSpan.Zero;
App.CurrentApp.LogAnalyticEvent("RateApp");
var marketplaceReviewTask = new MarketplaceReviewTask();
marketplaceReviewTask.Show();
}
示例10: RateButton_Clicked
private void RateButton_Clicked(object sender, System.Windows.RoutedEventArgs e)
{
var mrt = new MarketplaceReviewTask();
try {
mrt.Show();
} catch (Exception) {
}
}
示例11: ShowAfterThreshold
public void ShowAfterThreshold()
{
if (NumberOfStarts == numberOfStartsThreshold &&
GetMessageBoxResult() == MessageBoxResult.OK)
{
MarketplaceReviewTask task = new MarketplaceReviewTask();
task.Show();
}
}
示例12: 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();
}
}
示例13: Mark_Tap
private void Mark_Tap(object sender, System.Windows.Input.GestureEventArgs e)
{
try
{
MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask();
marketplaceReviewTask.Show();
}
catch (System.Exception ex)
{
}
}
示例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: ratemyapp
public void ratemyapp()
{
try
{
var rateTask = new MarketplaceReviewTask();
rateTask.Show();
}
catch
{
}
}