Ejemplo n.º 1
0
 private static void ProcessingEntityColor(Func <Color, Color> colorFunc, Entity entity, Transparency trans, Dimension dim)
 {
     if (!entity.Color.IsByLayer)
     {
         entity.UpgradeOpen();
         entity.Color = colorFunc(entity.Color);
         entity.DowngradeOpen();
     }
     if (entity.Transparency != trans)
     {
         entity.UpgradeOpen();
         entity.Transparency = trans;
         entity.DowngradeOpen();
     }
     if (dim != null)
     {
         dim.UpgradeOpen();
         dim.Dimclrd = colorFunc(dim.Dimclrd);
         dim.Dimclre = colorFunc(dim.Dimclre);
         dim.Dimclrt = colorFunc(dim.Dimclrt);
         dim.DowngradeOpen();
     }
 }