private void updateArrival(ArrivalViewModel arrival, TimeSpan walkTime) { arrival.WhenINeedToLeave = (int)((arrival.ArrivalTime - DateTime.Now - walkTime + TimeSpan.FromSeconds(1)).TotalMinutes); }
private void updateArrival(ArrivalViewModel arrival, TimeSpan walkTime) { arrival.WhenINeedToLeave = (int)((arrival.ArrivalTime - DateTime.Now - walkTime + TimeSpan.FromSeconds(1)).TotalMinutes); }