コード例 #1
0
 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);
 }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
ファイル: Toolsbar.cs プロジェクト: radtek/datawf
 public void Serialize(ISerializeWriter writer)
 {
     writer.Write(items);
 }
コード例 #4
0
 public void Serialize(ISerializeWriter writer)
 {
     writer.Write(ToSerialize);
 }