コード例 #1
0
 private void RollTimer_Tick(object sender, EventArgs e)
 {
     counter--;
     if (counter == 0)
     {
         RollTimer.Stop();
         SystemSounds.Exclamation.Play();
         MessageBox.Show("Roll", "Roll");
     }
     TimeLeftLabel.Text = counter.ToString() + " seconds";
 }
コード例 #2
0
 private void materialFlatButton2_Click(object sender, EventArgs e)
 {
     RollTimer.Stop();
     TimeLeftLabel.Text = "NONE";
 }