public virtual void Serialize(ISerializeWriter writer) { writer.WriteAttribute("Width", Width); writer.WriteAttribute("Height", Height); writer.Write(Cache, "Cache", true); writer.Write(dock, dock.Name, true); }
public virtual void Serialize(Widget widget, ISerializeWriter writer) { if (widget == null) { return; } if (widget is ISerializableElement && !string.IsNullOrEmpty(widget.Name)) { writer.Write(widget, widget.Name, true); } else if (widget is Box) { foreach (var swidget in ((Box)widget).Children) { Serialize(swidget, writer); } } else if (widget is Paned) { Serialize(((Paned)widget).Panel1.Content, writer); Serialize(((Paned)widget).Panel2.Content, writer); } }
public void Serialize(ISerializeWriter writer) { writer.Write(items); }
public void Serialize(ISerializeWriter writer) { writer.Write(ToSerialize); }