private void btnAll_Click(object sender, EventArgs e) { if (game.Ender) { game.DrawAllNumbers(); foreach (int i in game.DrawnNumbers) { this.lsbDrawnNumbers.Items.Add(i); } } else { MessageBox.Show("All the numbers have been drawn"); } }
private void btnAll_Click(object sender, EventArgs e) { if (game.Ender) { game.DrawAllNumbers(); for (int i = 0; i < game.MaxDraw; i++) { this.lsbDrawnNumbers.Items.Add(game.DrawnNumbers[i]); } } else { MessageBox.Show("All the numbers have been drawn"); } }