Пример #1
0
        protected internal void OnRowExpandedChanged(object sender, RowExpandedChangedEventArgs e)
        {
            if (e.Node == null)
                return;

            IGanttNode node = e.Node;

            int index = Nodes.IndexOf(node);

            if (node.Expanded)
                InsertChildNodes(node, ref index);
            else
                RemoveChildNodes(node);

            //Nodes.RaiseCollectionChanged();

            RaiseRowExpandedChanged(e);
        }
Пример #2
0
 protected void RaiseRowExpandedChanged(RowExpandedChangedEventArgs e)
 {
     if (RowExpandedChanged != null)
         RowExpandedChanged(this, e);
 }