示例#1
0
文件: Test.cs 项目: JordanMotta/Uno
        public void sendCard(Object sender, EventArgs e)
        {
            UButton b = (UButton)sender;

            Deck2.Text      = b.Text;
            Deck2.BackColor = b.BackColor;
        }
示例#2
0
文件: Test.cs 项目: JordanMotta/Uno
        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);
        }