예제 #1
0
 public static RndNumber getInstance()
 {
     if (instance == null)
     {
         instance = new RndNumber();
     }
     return(instance);
 }
예제 #2
0
        private void rastgeleSayiUret()
        {
            int[] rndSayilar = RndNumber.getInstance().getRastgeleSayilar();

            textBox1.Text = rndSayilar[0].ToString();
            textBox2.Text = rndSayilar[1].ToString();
            textBox3.Text = rndSayilar[2].ToString();
            textBox4.Text = rndSayilar[3].ToString();
            textBox5.Text = rndSayilar[4].ToString();
            textBox6.Text = rndSayilar[5].ToString();
            textBox7.Text = RndNumber.getInstance().getHedefSayi().ToString();
        }