예제 #1
0
 /// <summary>
 ///     从timetable中删去Checkpoint
 /// </summary>
 /// <param name="checkpoint"></param>
 public static void RemoveCheckpoint(Checkpoint.Checkpoint checkpoint) => _timeTable.Remove(checkpoint);
예제 #2
0
 /// <summary>
 /// 查看时间表中是否已经有了Checkpoint
 /// </summary>
 /// <param name="cp"></param>
 /// <returns></returns>
 private static bool CheckpointListContains(Checkpoint.Checkpoint cp) => _timeTable.Any(checkpoint => checkpoint == cp);
예제 #3
0
 /// <summary>
 ///     往timetable中加入Checkpoint
 /// </summary>
 /// <param name="checkpoint"></param>
 public static void AddCheckpoint(Checkpoint.Checkpoint checkpoint) => _timeTable.Add(checkpoint);