Last active
May 14, 2021 00:45
-
-
Save wtuts/2725d155620c75414087 to your computer and use it in GitHub Desktop.
Messagebox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Store the Messagebox result in result variable | |
MessageBoxResult result = MessageBox.Show("Do you wish to continue?", "Options", MessageBoxButton.OKCancel); | |
//check if user clicked on ok | |
if (result == MessageBoxResult.OK) | |
{ | |
//Add the task you wish to perform here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment