private void ChangeChildrenVisibleProperty(MachineElementViewModel me, bool value)
 {
     foreach (var item in me.Children)
     {
         if (item is MachineElementViewModel child)
         {
             ChangeVisibleProperty(child, value);
         }
     }
 }
 private void ChangeVisibleProperty(MachineElementViewModel me, bool value)
 {
     me.Visible = value;
     ChangeChildrenVisibleProperty(me, value);
 }