Beispiel #1
0
        void Win()
        {
            timerObj.Enabled = false;
            var             play = MessageBox.Show("You Win !!", "Win Message");
            Puzzle_Matching p    = new Puzzle_Matching();

            p.Show();
            this.Hide();
        }
Beispiel #2
0
 private void TimerObj_Tick(object sender, EventArgs e)
 {
     Valuelbl.Text = s.ToString();
     s            -= score;
     if (Valuelbl.Text == "0")
     {
         timerObj.Enabled = false;
         var             play = MessageBox.Show("You Lost !!", "Lost Message");
         Puzzle_Matching p    = new Puzzle_Matching();
         p.Show();
         this.Hide();
     }
 }