Esempio n. 1
0
        public static Graphic ExtractInnerGraphicFor(this Graphic outerGraphic, Thing thing)
        {
            Graphic_Random graphic_Random = outerGraphic as Graphic_Random;

            if (graphic_Random != null)
            {
                return(graphic_Random.SubGraphicFor(thing));
            }
            return(outerGraphic);
        }
        public static Graphic ExtractInnerGraphicFor(this Graphic outerGraphic, Thing thing)
        {
            Graphic_Random graphic_Random = outerGraphic as Graphic_Random;
            Graphic        result;

            if (graphic_Random != null)
            {
                result = graphic_Random.SubGraphicFor(thing);
            }
            else
            {
                result = outerGraphic;
            }
            return(result);
        }