コード例 #1
0
 private void radioButton1_CheckedChanged(object sender, EventArgs e)
 {
     if (radioButton1.Checked)
     {
         char bonus = Random_Letters.getInstance().bonusLetter();
         hrfbns.Text = bonus.ToString();
     }
 }
コード例 #2
0
        private void RndLetters()
        {
            char[] letters = Random_Letters.getInstance().rndLetters();

            hrf1.Text = letters[0].ToString();
            hrf2.Text = letters[1].ToString();
            hrf3.Text = letters[2].ToString();
            hrf4.Text = letters[3].ToString();
            hrf5.Text = letters[4].ToString();
            hrf6.Text = letters[5].ToString();
            hrf7.Text = letters[6].ToString();
            hrf8.Text = letters[7].ToString();
        }