void ForeachObjectSave(DockObject obj, XmlNode parent) { if (obj == null) { return; } XmlElement element = obj.ToXml(doc); parent.AppendChild(element); // FIXME: save placeholders for the object if (!(obj is DockPlaceholder)) { //ArrayList list = placeholders[obj] as ArrayList; //foreach (DockObject child in list) // ForeachObjectSave (child, element); } // recurse the object if appropriate if (obj.IsCompound) { DockObject child; foreach (Widget w in obj.Children) { child = w as DockObject; if (child != null) { ForeachObjectSave(child, element); } } } }
void ForeachObjectSave(DockObject obj, XmlNode parent) { if (obj == null) return; XmlElement element = obj.ToXml (doc); parent.AppendChild (element); // FIXME: save placeholders for the object if (!(obj is DockPlaceholder)) { //ArrayList list = placeholders[obj] as ArrayList; //foreach (DockObject child in list) // ForeachObjectSave (child, element); } // recurse the object if appropriate if (obj.IsCompound) { DockObject child; foreach (Widget w in obj.Children) { child = w as DockObject; if (child != null) ForeachObjectSave (child, element); } } }