private void btnDraw_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                lstNumbers.Items.Clear();

                BLLotto valittu = new BLLotto();
                int drawns = Convert.ToInt16(txbDraws.Text);

                for (int i = 0; i < drawns; i++)
                {
                    string apuri = "";

                    foreach (var item in valittu.ArvoRivi(cmbType.Text))
                    {
                        apuri += Convert.ToString(item + ", ");

                    }

                    lstNumbers.Items.Add(apuri);
                }
            }

            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
 public MainWindow()
 {
     InitializeComponent();
     Lotto = new BLLotto();
 }
 public MainWindow()
 {
     // laitetaan lottokone pyörimään!
     this.lottokone = new BLLotto();
     InitializeComponent();
 }