private void Button_Click_1(object sender, RoutedEventArgs e) { int n = b.Proximo(); txtNum.Text = n.ToString(); txtNums.Text += n.ToString() + " "; }
private void SortearClick(object sender, RoutedEventArgs e) { int n = b.Proximo(); if (n == -1) { txtNum.Text = "FIM!"; btnIniciar.IsEnabled = true; btnSortear.IsEnabled = false; } else { txtNum.Text = n.ToString(); txtNums.Text = ""; foreach (int i in b.Sorteados()) { txtNums.Text += (i + " - "); } } }