Example #1
0
        private void btnDraw_Click(object sender, RoutedEventArgs e)
        {
            try {
                txtDrawnNumbers.Text = String.Empty;
                BLlotto lotto = new BLlotto();
                for (int i = 0; i < int.Parse(txtNumberOf.Text); i++)
                {
                    txtDrawnNumbers.AppendText(lotto.draw(cbComboBox.Text));
                    txtDrawnNumbers.AppendText(Environment.NewLine);
                }
            }

            catch (Exception exception)
            {
                MessageBox.Show("Exception 52398528958292x998y0900");
            }
        }
Example #2
0
        private void btnDraw_Click(object sender, RoutedEventArgs e)
        {
            try {
                txtDrawnNumbers.Text = String.Empty;
                BLlotto lotto = new BLlotto();
                for (int i = 0; i < int.Parse(txtNumberOf.Text); i++)
                {
                    txtDrawnNumbers.AppendText(lotto.draw(cbComboBox.Text));
                    txtDrawnNumbers.AppendText(Environment.NewLine);
                }
            }

            catch(Exception exception)
            {
                MessageBox.Show("Exception 52398528958292x998y0900");
            }
            
           
        }