public void LoadFromString(FacilityKindTable allFacilityKinds, string facilityKindIDs) { char[] separator = new char[] { ' ', '\n', '\r' }; string[] strArray = facilityKindIDs.Split(separator, StringSplitOptions.RemoveEmptyEntries); FacilityKind kind = null; for (int i = 0; i < strArray.Length; i++) { if (allFacilityKinds.FacilityKinds.TryGetValue(int.Parse(strArray[i]), out kind)) { this.AddFacilityKind(kind); } } }
public void LoadFromString(FacilityKindTable allFacilityKinds, string facilityKindIDs) { char[] separator = new char[] { ' ', '\n', '\r', '\t' }; string[] strArray = facilityKindIDs.Split(separator, StringSplitOptions.RemoveEmptyEntries); FacilityKind kind = null; for (int i = 0; i < strArray.Length; i++) { if (allFacilityKinds.FacilityKinds.TryGetValue(int.Parse(strArray[i]), out kind)) { this.AddFacilityKind(kind); } } }