private void FixupIllustration(Illustration previousValue)
        {
            if (previousValue != null && previousValue.ProductModelIllustrations.Contains(this))
            {
                previousValue.ProductModelIllustrations.Remove(this);
            }

            if (Illustration != null)
            {
                if (!Illustration.ProductModelIllustrations.Contains(this))
                {
                    Illustration.ProductModelIllustrations.Add(this);
                }
                if (IllustrationID != Illustration.IllustrationID)
                {
                    IllustrationID = Illustration.IllustrationID;
                }
            }
        }
Ejemplo n.º 2
0
        private void FixupIllustration(Illustration previousValue)
        {
            if (previousValue != null &&
                previousValue.ProductModelIllustrations.Contains(this))
            {
                previousValue.ProductModelIllustrations.Remove(this);
            }

            if (Illustration != null)
            {
                if (!Illustration.ProductModelIllustrations.Contains(this))
                {
                    Illustration.ProductModelIllustrations.Add(this);
                }
                if (IllustrationID != Illustration.IllustrationID)
                {
                    IllustrationID = Illustration.IllustrationID;
                }
            }
        }