예제 #1
0
        public override void Draw(GraphicsBase g)
        {
            if (this.Image != null)
            {
                g.DrawImage(this.Image, this.Location);
            }

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