Example #1
0
        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));
        }
Example #2
0
 public EveScoutWormholeSolarSystemConnection(SolarSystemViewModel source,
                                              SolarSystemViewModel target,
                                              EveScoutWormholeConnection whConnection) : base(source, target)
 {
     _whConnection = whConnection;
 }