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; }
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(); }