示例#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;
                }
            }
        }
示例#2
0
文件: Plat.cs 项目: vitelize/YouFood
        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;
                }
            }
        }