private static SolarSystemConnection CreateEveScoutWormholeSystemConnection(IList <SolarSystemViewModel> allSystems, EveScoutWormholeConnection eveScoutWormholeConnection) { var first = allSystems.FirstOrDefault(x => x.Name == eveScoutWormholeConnection.FirstSystem) ?? GetSystemViewModelFor(eveScoutWormholeConnection.FirstSystem); var second = allSystems.FirstOrDefault(x => x.Name == eveScoutWormholeConnection.SecondSystem) ?? GetSystemViewModelFor(eveScoutWormholeConnection.SecondSystem); return(new EveScoutWormholeSolarSystemConnection(first, second, eveScoutWormholeConnection)); }
public EveScoutWormholeSolarSystemConnection(SolarSystemViewModel source, SolarSystemViewModel target, EveScoutWormholeConnection whConnection) : base(source, target) { _whConnection = whConnection; }