Exemplo n.º 1
0
 public bool Write(GH_IWriter writer)
 {
     writer.SetString("tName", Name);
     writer.SetString("tDescription", Description);
     writer.SetString("tOwner", Owner);
     writer.SetString("tLink", Link);
     writer.SetBoolean("tHasDate", HasDate);
     writer.SetDrawingColor("tColor", Color);
     if (HasDate)
     {
         writer.SetDate("tDate", Date);
     }
     writer.SetInt32("tStatus", (int)Status);
     writer.SetEnumerable("tTags", _tags, WriteString);
     return(true);
 }
Exemplo n.º 2
0
 public static void WriteDate(GH_IWriter writer, string itemName, DateTime data)
 {
     writer.SetDate(itemName, data);
 }