Exemplo n.º 1
0
        public override void Draw(GraphicsBase g)
        {
            if (this.Image != null)
            {
                g.DrawImage(this.Image, this.Location);
            }

            //画图片
            base.Draw(g);
        }
Exemplo n.º 2
0
 public override void Draw(GraphicsBase g)
 {
     lock (_lockObj)
     {
         if (this.Background != null)
         {
             g.DrawImage(Background, this.Location);
         }
         //画图片
         base.Draw(g);
     }
 }