Exemplo n.º 1
0
        private void FixupTypePlat(TypePlat previousValue)
        {
            if (previousValue != null && previousValue.Plat.Contains(this))
            {
                previousValue.Plat.Remove(this);
            }

            if (TypePlat != null)
            {
                if (!TypePlat.Plat.Contains(this))
                {
                    TypePlat.Plat.Add(this);
                }
                if (TypePlatID != TypePlat.ID)
                {
                    TypePlatID = TypePlat.ID;
                }
            }
        }
Exemplo n.º 2
0
        private void FixupTypePlat(TypePlat previousValue)
        {
            if (previousValue != null && previousValue.Plat.Contains(this))
            {
                previousValue.Plat.Remove(this);
            }

            if (TypePlat != null)
            {
                if (!TypePlat.Plat.Contains(this))
                {
                    TypePlat.Plat.Add(this);
                }
                if (TypePlatID != TypePlat.ID)
                {
                    TypePlatID = TypePlat.ID;
                }
            }
        }