Ejemplo n.º 1
0
        internal void OnChildSelectionChanged()
        {
            IGroupChild prevChild = null;

            foreach (var child in Children)
            {
                if (prevChild == null || prevChild.UISelected == child.UISelected)
                {
                    prevChild = child;
                    continue;
                }
                else
                {
                    SetUISelected(null, true);
                    return;
                }
            }
            SetUISelected(prevChild.UISelected, true);
        }
Ejemplo n.º 2
0
 public void AddChild(IGroupChild child)
 {
     Children.Add(child);
     child.Parent = this;
 }