Example #1
0
        //按下图标显示
        void pb_MouseDown(object sender, EventArgs e)
        {
            UnitCard pb = sender as UnitCard;

            pb.Image = Properties.Resources.银色_点击后1;
            pb.Brush = new SolidBrush(Color.Black);
            pb.Refresh();
            this.lastCard = pb;
        }
Example #2
0
 //默认图标显示
 void pb_MouseUp(object sender, EventArgs e)
 {
     if (this.lastCard != null)
     {
         lastCard.Image = Properties.Resources.蓝色_点击前1;
         lastCard.Brush = new SolidBrush(Color.Black);
         lastCard.Refresh();
     }
 }