Ejemplo n.º 1
0
        private void OnSourceAdd(object sender, AddEventArgs e)
        {
            if (this.TryCreateChildNode(e.Index, out var childNode))
            {
                this.Children.Insert(e.Index, childNode);
            }

            this.Changed?.Invoke(this, RootChangeEventArgs.Create(this, e));
        }
Ejemplo n.º 2
0
        private void OnTrackedAdd(object sender, AddEventArgs e)
        {
            for (int i = e.Index; i < Math.Max(this.XList.Count, this.YList.Count); i++)
            {
                this.UpdateIndexChildNode(i);
                this.UpdateIndexDiff(i);
            }

            this.TryRefreshAndNotify(e);
        }
Ejemplo n.º 3
0
        private void OnSourceAdd(object sender, AddEventArgs e)
        {
            IUnsubscriber <IChildNode <ChangeTrackerNode> > childNode;

            if (this.TryCreateChildNode(e.Index, out childNode))
            {
                this.Children.Insert(e.Index, childNode);
            }

            this.Changed?.Invoke(this, RootChangeEventArgs.Create(this, e));
        }