コード例 #1
0
 private void ChangeChildrenVisibleProperty(MachineElementViewModel me, bool value)
 {
     foreach (var item in me.Children)
     {
         if (item is MachineElementViewModel child)
         {
             ChangeVisibleProperty(child, value);
         }
     }
 }
コード例 #2
0
 private void ChangeVisibleProperty(MachineElementViewModel me, bool value)
 {
     me.Visible = value;
     ChangeChildrenVisibleProperty(me, value);
 }