Skip to content
Snippets Groups Projects
Commit 4bf4b4a9 authored by TRITSCHBERGER ANTOINE's avatar TRITSCHBERGER ANTOINE
Browse files

Recorrection de bug de rejouer

parent 60acdbcc
1 merge request!37Recorrection de bug de rejouer
...@@ -222,13 +222,15 @@ namespace psychorientation ...@@ -222,13 +222,15 @@ namespace psychorientation
competenceFinal, competenceFinal,
moyenneFinale moyenneFinale
); );
m_fin.ShowDialog();
UntransmitKeyDown(); UntransmitKeyDown();
pb_action_suivante.Click -= new System.EventHandler(Pb_action_suivante_Click); pb_action_suivante.Click -= new System.EventHandler(Pb_action_suivante_Click);
this.FormClosing -= new System.Windows.Forms.FormClosingEventHandler(InterfaceClasse_FormClosing); this.FormClosing -= new System.Windows.Forms.FormClosingEventHandler(InterfaceClasse_FormClosing);
Close(); Close();
InterfaceClasse iC = new InterfaceClasse(isRandom); if (m_fin.ShowDialog()==DialogResult.Retry)
iC.ShowDialog(); {
InterfaceClasse iC = new InterfaceClasse(isRandom);
iC.Show();
}
break; break;
} }
......
...@@ -22,14 +22,14 @@ namespace psychorientation ...@@ -22,14 +22,14 @@ namespace psychorientation
private void button1_Click(object sender, EventArgs e) private void button1_Click(object sender, EventArgs e)
{ {
InterfaceClasse iC = new InterfaceClasse(false); InterfaceClasse iC = new InterfaceClasse(false);
iC.ShowDialog(); iC.Show();
} }
private void button2_Click(object sender, EventArgs e) private void button2_Click(object sender, EventArgs e)
{ {
InterfaceClasse iC = new InterfaceClasse(true); InterfaceClasse iC = new InterfaceClasse(true);
iC.ShowDialog(); iC.Show();
} }
private void TransmitKeyDown() private void TransmitKeyDown()
......
...@@ -205,7 +205,7 @@ namespace psychorientation ...@@ -205,7 +205,7 @@ namespace psychorientation
private void btnRejouer_Click(object sender, EventArgs e) private void btnRejouer_Click(object sender, EventArgs e)
{ {
this.DialogResult = DialogResult.OK; this.DialogResult = DialogResult.Retry;
} }
} }
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment