예제 #1
0
        private void vytvoritCelyBaleniKaret()
        {
            celyBalik = new List <Karta>();
            int[] hodnota = { 4, 5, 6, 7, 8, 9, 10, 11 };
            int   id      = 0;

            for (int i = 0; i < 8; i++)
            {
                for (int j = 0; j < 4; j++)
                {
                    Karta karta = new Karta(id, hodnota[i]);
                    karta.img = Image.FromFile(@"..\..\resources\karty\" + id + ".jpg");
                    celyBalik.Add(karta);
                    id++;
                }
            }
        }
예제 #2
0
 public void PrijmoutKartu(Karta k)
 {
     balicek.Add(k);
 }