Beispiel #1
0
 private void btnCreateLotteryObject_Click(object sender, EventArgs e)
 {
     lotto = new Lottery(Convert.ToInt32(tbxMaxValue.Text), Convert.ToInt32(tbxNrWanted.Text));
     btnDrawNextNumber.Enabled = true;
     btnDrawAllNumbers.Enabled = true;
     btnShowInfo.Visible       = true;
 }
Beispiel #2
0
 private void btnFlashyAnimation_Click(object sender, EventArgs e)
 {
     lotto = new Lottery(Convert.ToInt32(tbxMaxValue.Text), Convert.ToInt32(tbxNrWanted.Text));
     btnDrawNextNumber.Enabled = true;
     btnDrawAllNumbers.Enabled = true;
     btnShowInfo.Visible       = true;
     timerFlashy.Start();
 }