Exemplo n.º 1
0
        public void sendCard(Object sender, EventArgs e)
        {
            UButton b = (UButton)sender;

            Deck2.Text      = b.Text;
            Deck2.BackColor = b.BackColor;
        }
Exemplo n.º 2
0
        private void Test_Load(object sender, EventArgs e)
        {
            UButton button = new UButton();
            Card    card   = new Card();

            card.color = System.Drawing.Color.Yellow;
            card.name  = "2";
            button.drawCard(card);
            button.Click += sendCard;
            Hand.Controls.Add(button);
        }