コード例 #1
0
ファイル: Puzzle_Matching.cs プロジェクト: Noboranjan/C-sharp
        void Win()
        {
            timerObj.Enabled = false;
            var             play = MessageBox.Show("You Win !!", "Win Message");
            Puzzle_Matching p    = new Puzzle_Matching();

            p.Show();
            this.Hide();
        }
コード例 #2
0
ファイル: Puzzle_Matching.cs プロジェクト: Noboranjan/C-sharp
 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();
     }
 }