3
I tried to implement the code below in a Windows Phone 8.1 project, the same had already been implemented in Windows Forms successfully.
What should I change to be valid for Windowsphone 8.1?
private void reset_Click(object sender, RoutedEventArgs e)
{
const string message = "Voce deseja voltar o jogo ao seu estado normal ?";
const string caption = "Reset";
var result = MessageBox.Show(message, caption,
MessageBoxButtons.YesNo,
MessageBoxIcon.Question);
if (result == DialogResult.No)
{
}
else { this.Close(); /*re-estabeleçe valores*/ }
}
Displays the following error:
The name 'Messagebox' does not exist in the Current context