Exemplo 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));
        }
Exemplo 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);
        }
Exemplo 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));
        }