public void Run(Component comp, Graphics cg)
 {
     if (comp.Peer_Renamed is LightweightPeer)
     {
         comp.PaintHeavyweightComponents(cg);
     }
     else
     {
         comp.PaintAll(cg);
     }
 }
 public void Run(Component comp, Graphics cg)
 {
     comp.PaintAll(cg);
 }