예제 #1
0
        private void Remove(RowPresenter row)
        {
            Debug.Assert(row != null);

            if (_mappings != null)
            {
                _mappings.Remove(row.DataRow);
            }

            var parent = row.Parent;
            var index  = IndexOf(row);

            RemoveAt(parent, index);

            DisposeRow(row);

            if (parent != null && parent.Children.Count == 0 && !PassesFilter(parent.DataRow))
            {
                Remove(parent);
            }
            else
            {
                OnRowRemoved(parent, index);
            }

            row.Dispose();
        }
예제 #2
0
 protected virtual void DisposeRow(RowPresenter row)
 {
     row.Dispose();
 }