public static TrackViewModel CreateNew(TrackTypeViewModel trackTypeViewModel) { TrackDoubleSlipSwitch trackDoubleSlipSwitch = new TrackDoubleSlipSwitch { Article = string.Empty, LengthId = trackTypeViewModel.Lengths.First().Id, CrossingAngleId = trackTypeViewModel.Angles.First().Id, SlipRadiusId = trackTypeViewModel.Radii.First().Id }; return(new TrackDoubleSlipSwitchViewModel(trackTypeViewModel, trackDoubleSlipSwitch)); }
public TrackDoubleSlipSwitchViewModel(TrackTypeViewModel trackTypeViewModel, TrackDoubleSlipSwitch track) : base(trackTypeViewModel, track) { this.track = track; }