Esempio n. 1
0
        private void btnLoadPlayer_Click(object sender, EventArgs e)
        {
            string name = tbPlayerName.Text;

            manager.LoadPlayers();
            Player player;

            toto         = new TotoForm();
            toto.manager = manager;
            player       = manager.FindPlayerByName(name);
            if (player == null)
            {
                MessageBox.Show("Deze speler bestaat niet. Gebruik een andere naam");
                return;
            }


            toto.loadPlayer(player);
            toto.Show();
        }
Esempio n. 2
0
 private void btnNewPlayer_Click(object sender, EventArgs e)
 {
     toto         = new TotoForm();
     toto.manager = manager;
     toto.Show();
 }