private static bool IsGraphicInCollection(IGraphic graphic, GraphicCollection graphicCollection)
		{
			IGraphic testGraphic = graphic;
			while(testGraphic != null)
			{
				if (graphicCollection.Contains(testGraphic))
					return true;

				testGraphic = testGraphic.ParentGraphic;
			}

			return false;
		}
Ejemplo n.º 2
0
        private static bool IsGraphicInCollection(IGraphic graphic, GraphicCollection graphicCollection)
        {
            IGraphic testGraphic = graphic;

            while (testGraphic != null)
            {
                if (graphicCollection.Contains(testGraphic))
                {
                    return(true);
                }

                testGraphic = testGraphic.ParentGraphic;
            }

            return(false);
        }