Example #1
0
        ////业务绘制
        //void pbu_Paint(object sender, PaintEventArgs e)
        //{
        //    PictureBox pb = sender as PictureBox;
        //    TBusinessModel busy = pb.Tag as TBusinessModel;
        //    Font font = new Font("黑体", 22, FontStyle.Bold);
        //    e.Graphics.DrawString(busy.busiName, font, new SolidBrush(Color.White), 10, 7);
        //}

        //按下图标显示
        void pb_MouseDown(object sender, MouseEventArgs e)
        {
            BusyCard pb = sender as BusyCard;

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