public void Save() { DzBoxSerializer dzBox = new DzBoxSerializer("workspace"); int j = userBoxes.Count; for (int i = 0; i < j; ++i) { var dzElem = userBoxes[i] as IDesignBox; dzElem.Describe(dzBox); } dzBox.WriteToFile("d:\\WImageTest\\workspace01.xml"); }