摘要:
扑克牌用了一个自定义控件,代码如下 public class CardButton : Button { public int state;//是否翻转0是未翻转,1是已翻转 private static CardButton button; public CardButton() { this.DefaultStyleKey = typeof(CardButton); // this.Click += CardButton_Click; }主要是继承了button控件然后增加... 阅读全文