Esempio n. 1
0
 void RowDef_RowCollapsing(RowDef row)
 {
     foreach (RowDef child in row.Children)
     {
         if (row.IsExpanded.HasValue && row.IsExpanded.Value)
             RowDef_RowCollapsing(child);
         child.IsVisible = false;
     }
     OnPropertyChanged("Display");
 }
Esempio n. 2
0
 IEnumerable<RowDef> IterateTree(RowDef parent)
 {
     if (!parent.IsVisible)
         yield break;
     yield return parent;
         foreach (RowDef child in parent.Children)
         {
             foreach (RowDef r in IterateTree(child))
             {
                 yield return r;
             }
         }
 }
Esempio n. 3
0
 public RowDef(RowDef parent)
     : this()
 {
     Parent = parent;
 }
Esempio n. 4
0
 void RowDef_RowExpanding(RowDef row)
 {
     foreach (RowDef child in row.Children)
         child.IsVisible = true;
     OnPropertyChanged("Display");
 }