private void Save(RadDiagram diagram, string Path) { var xml = diagram.Save(); using (var stream = System.IO.File.OpenWrite(Path)) { using (var Writer = new System.IO.StreamWriter(stream)) { Writer.Write(xml); } } }