예제 #1
0
 public MainWindow(StopTimes stopTimes)
 {
     InitializeComponent();
       SetStopTimes(stopTimes);
       InitializeContent();
       mStopDelayChooser.Value = mStopTimeDelayMin;
 }
예제 #2
0
 public static List<StopTimeDifference> GetNextStops(StopTimes stopTimes, DateTime date,
     int stopTimeDelay, int stopCount)
 {
     List<StopTimeDifference> stops = stopTimes.GetNextStops(date, stopTimeDelay,
                                                       stopCount);
       ValidateNextStops(stops, date);
       return stops;
 }
예제 #3
0
 public static List<StopTimeDifference> GetNextStops(StopTimes stopTimes, DateTime date,
     int stopCount)
 {
     return GetNextStops(stopTimes, date, 0, stopCount);
 }
예제 #4
0
 public void Init()
 {
     stopTimes = new StopTimes();
       Assert.That(stopTimes.Count, Is.EqualTo(0));
 }
예제 #5
0
 private void SetStopTimes(StopTimes stopTimes)
 {
     mStopTimes = stopTimes;
       mStopNameLabel.Text = stopTimes.StopName;
 }
예제 #6
0
 public void ParseNonExistent()
 {
     times = new StopTimeParser().Parse(@"Non-existent-file.html");
 }
예제 #7
0
 public void ParseInvalid()
 {
     times = new StopTimeParser().Parse(@"C#\StopWatch\StopWatch.sln");
       Assert.That(times.Count, Is.EqualTo(0));
 }
예제 #8
0
 public void Init()
 {
     times = new StopTimeParser().Parse(Settings.Default.TimetableDir + "1310137.html");
 }