public static bool DoesContain(Model3D tree, Model3D item) { if (item == tree) { return(true); } Model3DGroup model3Dgroup = tree as Model3DGroup; if (model3Dgroup != null && model3Dgroup.Children != null) { foreach (Model3D tree1 in model3Dgroup.Children) { if (Adorner3D.DoesContain(tree1, item)) { return(true); } } } return(false); }
public bool DoesIncludeModel3D(Model3D item) { return(Adorner3D.DoesContain((Model3D)this.AdornerModel, item)); }