Beispiel #1
0
 private void btnDraw_Click(object sender, RoutedEventArgs e)
 {
     Lotto lotto = new Lotto(cbType.SelectedItem.ToString());
     int amount = int.Parse(txtNumber.Text);
     for (int i = 0; i < amount; i++)
     {
         txtDraws.Text += lotto.Draw() + "\n";
     }
 }
Beispiel #2
0
        private void btnDraw_Click(object sender, RoutedEventArgs e)
        {
            Lotto lotto  = new Lotto(cbType.SelectedItem.ToString());
            int   amount = int.Parse(txtNumber.Text);

            for (int i = 0; i < amount; i++)
            {
                txtDraws.Text += lotto.Draw() + "\n";
            }
        }