done without smiley. added prompt for reset
This commit is contained in:
parent
50ec054dd0
commit
e08e0e24e4
@ -326,6 +326,16 @@ namespace ElementaryMathematics
|
||||
}
|
||||
|
||||
private void btnReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
DialogResult btnDialog;
|
||||
string strResponse;
|
||||
|
||||
strResponse = "Do you really want to reset all statistics?";
|
||||
|
||||
btnDialog = MessageBox.Show(strResponse, "Chapter Four", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2);
|
||||
|
||||
if (btnDialog == DialogResult.Yes)
|
||||
{
|
||||
btnClear_Click(sender, e);
|
||||
|
||||
@ -339,6 +349,8 @@ namespace ElementaryMathematics
|
||||
lblNumIncorrect.Text = "0";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void UpdateButtons()
|
||||
{
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user