public bool Read(GH_IReader reader) { Name = reader.GetString("tName"); Description = reader.GetString("tDescription"); Owner = reader.GetString("tOwner"); Link = reader.GetString("tLink"); Color = reader.GetDrawingColor("tColor"); HasDate = reader.ItemExists("tHasDate") ? reader.GetBoolean("tHasDate") : false; if (HasDate) { Date = reader.GetDate("tDate"); } Status = (TaskStatus)reader.GetInt32("tStatus"); StatusIn = Status; _tags = new ImmutableHashSet <string>(reader.GetEnumerable("tTags", ReadString)); return(true); }
public static DateTime ReadDate(GH_IReader reader, string itemName) { return(reader.GetDate(itemName)); }
public static DateTime ReadDate(GH_IReader reader, string itemName, int itemIndex) { return(reader.GetDate(itemName, itemIndex)); }