Beispiel #1
0
 public void AddMethodArea(string key, GardenArea methodArea)
 {
     AddToDictionary(key, methodArea, MethodAreas);
     if (this.ID.Length == 0)
     {
         throw new System.Exception($"{typeof(Garden).Name} must be added to {typeof(GardenData).Name} before adding {typeof(GardenArea).Name}");
     }
     methodArea.GardenID = ID;
 }
Beispiel #2
0
 public void RemoveMethodArea(GardenArea area)
 {
     RemFromDictionary(area, MethodAreas);
 }