예제 #1
0
 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);
 }
예제 #2
0
 public static DateTime ReadDate(GH_IReader reader, string itemName)
 {
     return(reader.GetDate(itemName));
 }
예제 #3
0
 public static DateTime ReadDate(GH_IReader reader, string itemName, int itemIndex)
 {
     return(reader.GetDate(itemName, itemIndex));
 }