Esempio n. 1
0
        internal void Update(Layer1.ISource aSource)
        {
            if (Active)
            {
                iGroup.Room.Remove(this);
            }

            if (iSource.Name != aSource.Name)
            {
                if (iChildList.Count > 0)
                {
                    foreach (Group child in iChildList)
                    {
                        child.Parent = null;
                    }

                    iChildList.Clear();
                }

                iSource = aSource;
                UpdateDisplayName();

                iGroup.Room.Unorphan(this);
            }
            else
            {
                iSource = aSource;
            }

            if (Active)
            {
                iGroup.Room.Add(this);
            }
        }
Esempio n. 2
0
 internal Source(Group aGroup, uint aIndex, Layer1.ISource aSource)
 {
     iGroup     = aGroup;
     iIndex     = aIndex;
     iSource    = aSource;
     iChildList = new List <Group>();
     UpdateDisplayName();
 }