public ScoringLocationType(pScoringLocationType s) { for (int i = 0; i < s.Zone.Count; i++) { this.zone.Add(s.Zone[i]); } if ("Anywhere" == s.Zone[0]) { this.relationship = ScoringDB.ActorInfo.LocationInfo.LocationType.Anywhere; } else if (("InZone" == s.Relationship) || ("" == s.Relationship)) { this.relationship = ScoringDB.ActorInfo.LocationInfo.LocationType.InZone; } else if ("NotInZone" == s.Relationship) { this.relationship = ScoringDB.ActorInfo.LocationInfo.LocationType.NotInZone; } else { throw new ApplicationException("Unknown scoring region relationship: " + s.Relationship); } }
public ScoringLocationType(pScoringLocationType s) { for (int i = 0; i < s.Zone.Count; i++) this.zone.Add(s.Zone[i]); if ("Anywhere" == s.Zone[0]) { this.relationship = ScoringDB.ActorInfo.LocationInfo.LocationType.Anywhere; } else if (("InZone" == s.Relationship)||(""==s.Relationship)) { this.relationship = ScoringDB.ActorInfo.LocationInfo.LocationType.InZone; } else if ("NotInZone" == s.Relationship) { this.relationship = ScoringDB.ActorInfo.LocationInfo.LocationType.NotInZone; } else { throw new ApplicationException("Unknown scoring region relationship: " + s.Relationship); } }
public ScoringLocationType(List <string> zone, ScoringDB.ActorInfo.LocationInfo.LocationType relationship) { this.zone = zone; this.relationship = relationship; }
public ScoringLocationType(List<string> zone, ScoringDB.ActorInfo.LocationInfo.LocationType relationship) { this.zone = zone; this.relationship = relationship; }