/// <summary> /// Loads delay info to the info board by station. /// </summary> public void LoadInfoBoardByStation(StationViewModel station) { DoAndHandleExceptions(() => { InfoBoard_ByStation.LoadBoard(pageReader.GetStationDelayInfos(station.GetCopyOfStation)); }); IsInfoBoardByStationOn = true; IsStationBoardOn = IsInfoBoardByTrainOn = false; }
public DelayInfoViewModel(TBy byData, StationViewModel station, TrainViewModel train, DateTime date, string from, string destination, TimeSpan?plannedArrival, TimeSpan?arrivalDelay, TimeSpan?plannedDeparture, TimeSpan?departureDelay) { Station = station; Train = train; delayInfo = new DelayInfo <TBy>() { ByData = byData, Station = new Station(station.StationName, station.StationID), Train = new Train(train.Name, train.ID, train.Host), Date = date, From = from, Destination = destination, PlannedArrival = plannedArrival, ArrivalDelay = arrivalDelay, PlannedDeparture = plannedDeparture, DepartureDelay = departureDelay }; }