I tried to implement the code below in a Windows Phone 8.1 project, it had already been implemented in Windows Forms successfully.
What should I change to be valid for Windows Phone 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