public GetCollection ( SpeedCaptureLocation location ) : ReadOnlyObservableCollection |
||
location | SpeedCaptureLocation | the capture location. |
return | ReadOnlyObservableCollection |
public ReadOnlyObservableCollection<SpeedCaptureModel> GetCollection(SpeedCaptureLocation location)
{
switch(location)
{
case SpeedCaptureLocation.S1:
return S1;
case SpeedCaptureLocation.S2:
return S2;
case SpeedCaptureLocation.S3:
return S3;
case SpeedCaptureLocation.Straight:
return Straight;
default:
throw Guard.ArgumentOutOfRange("location");
}
}