Exemplo n.º 1
0
 private void Game_Form_FormClosing(object sender, FormClosingEventArgs e)
 {
     timer1.Stop();
     if (on)
     {
         u.add_victory(startValue, clik);
         Victory_Form f = new Victory_Form(u);
         f.Show();
     }
     else
     {
         if (MessageBox.Show("The window will now be closed; do I really need to do this (the result of the game will not be saved)?",
                             "Exit?",
                             MessageBoxButtons.YesNo,
                             MessageBoxIcon.Question) == DialogResult.Yes)
         {
             Main_Form f = new Main_Form(u);
             f.Show();
         }
         else
         {
             e.Cancel = true;
             timer1.Start();
         }
     }
 }
Exemplo n.º 2
0
        private void Rating_Form_FormClosed(object sender, FormClosedEventArgs e)
        {
            Main_Form f = new Main_Form(u);

            f.Show();
        }