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;
                }
            }
        }
예제 #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;
                }
            }
        }