public HauptfensterViewModel(IHaltestellenMapper haltestellenMapper) : base() { if (haltestellenMapper != null) { _randomNumber = new Random(); _haltestellenMapper = haltestellenMapper; _haltestellen6 = _haltestellenMapper.GetByNameLength(6); _haltestellen7 = _haltestellenMapper.GetByNameLength(7); Flap = new List<String> { "VIENNA", "TRAFFIC", "MONITOR" }; FlapTimer = new Timer(_flapTick, null, 5000, 5000); } }
public HauptfensterViewModel(IHaltestellenMapper haltestellenMapper) : base() { if (haltestellenMapper != null) { _randomNumber = new Random(); _haltestellenMapper = haltestellenMapper; _haltestellen6 = _haltestellenMapper.GetByNameLength(6); _haltestellen7 = _haltestellenMapper.GetByNameLength(7); Flap = new List <String> { "VIENNA", "TRAFFIC", "MONITOR" }; FlapTimer = new Timer(_flapTick, null, 5000, 5000); } }
public void TestInitialize() { _data = new ConcurrentDictionary<int, IHaltestelle>(); for (int i = 1; i <= 10; i++) { _data.TryAdd(i, new Haltestelle(i, 123, "Haltestelle " + i.ToString(), new Point())); } _mapperFictional = new HaltestellenMapper(_data, LinienMapperFactory.Instance); _mapperReal = HaltestellenMapperFactory.Instance; pointHauptbhfOst = new Point(48.1844162175681, 16.3803748315515); pointPraterstern = new Point(48.2185133276323, 16.3923272266447); rectHbfPrater = new VtmRectangle(pointPraterstern, pointHauptbhfOst); rectHbfHbf = new VtmRectangle(pointHauptbhfOst, pointHauptbhfOst); hauptbahnhof = new Haltestelle(214461409, 60201349, "Hauptbahnhof", new Point(48.1844162175681, 16.3803748315515)); hauptbahnhofOst = new Haltestelle(214461006, 60200905, "Hauptbahnhof Ost", pointHauptbhfOst); hauptbahnhofStPoelten = new Haltestelle(214463796, 60204848, "St Pölten Hauptbahnhof", new Point(48.2081918762008, 15.6240387768482)); hauptbahnhofWrNeustadt = new Haltestelle(214464157, 60205210, "Wr Neustadt Hauptbahnhof", new Point(47.8116057625811, 16.2341635785245)); praterstern = new Haltestelle(214461125, 60201040, "Praterstern", pointPraterstern); }
public void TestInitialize() { _data = new ConcurrentDictionary <int, IHaltestelle>(); for (int i = 1; i <= 10; i++) { _data.TryAdd(i, new Haltestelle(i, 123, "Haltestelle " + i.ToString(), new Point())); } _mapperFictional = new HaltestellenMapper(_data, LinienMapperFactory.Instance); _mapperReal = HaltestellenMapperFactory.Instance; pointHauptbhfOst = new Point(48.1844162175681, 16.3803748315515); pointPraterstern = new Point(48.2185133276323, 16.3923272266447); rectHbfPrater = new VtmRectangle(pointPraterstern, pointHauptbhfOst); rectHbfHbf = new VtmRectangle(pointHauptbhfOst, pointHauptbhfOst); hauptbahnhof = new Haltestelle(214461409, 60201349, "Hauptbahnhof", new Point(48.1844162175681, 16.3803748315515)); hauptbahnhofOst = new Haltestelle(214461006, 60200905, "Hauptbahnhof Ost", pointHauptbhfOst); hauptbahnhofStPoelten = new Haltestelle(214463796, 60204848, "St Pölten Hauptbahnhof", new Point(48.2081918762008, 15.6240387768482)); hauptbahnhofWrNeustadt = new Haltestelle(214464157, 60205210, "Wr Neustadt Hauptbahnhof", new Point(47.8116057625811, 16.2341635785245)); praterstern = new Haltestelle(214461125, 60201040, "Praterstern", pointPraterstern); }
public SucheViewModel(IHaltestellenMapper haltestellenMapper) { _mapper = haltestellenMapper; }
private static SucheViewModel _createInstance() { IHaltestellenMapper haltestellenMapper = HaltestellenMapperFactory.Instance; return(new SucheViewModel(haltestellenMapper)); }
public static AbfahrtenViewModel GetInstance(int haltestellenId) { IHaltestellenMapper hm = HaltestellenMapperFactory.Instance; return(new AbfahrtenViewModel(hm.Find(haltestellenId))); }
private static HauptfensterViewModel _createInstance() { IHaltestellenMapper mapper = HaltestellenMapperFactory.Instance; return(new HauptfensterViewModel(mapper)); }