private bool ContainTrack(
     IEnumerable <NorthAtlanticTrack> trks,
     string ident,
     NatsDirection dir)
 {
     return(trks.Any(i => i.Ident == ident && i.Direction == dir));
 }
Exemple #2
0
 public IndividualNatsMessage(
     string LastUpdated,
     string Header,
     NatsDirection Direction,
     string Message)
 {
     this.LastUpdated = LastUpdated;
     this.Header      = Header;
     this.Direction   = Direction;
     this.Message     = Message;
 }
 public NorthAtlanticTrack(
     NatsDirection Direction,
     string Ident,
     string TimeStart,
     string TimeEnd,
     string Remarks,
     RouteString MainRoute)
     : base(Ident,
            TimeStart,
            TimeEnd,
            Remarks,
            MainRoute,
            EmpRouteStrings,
            EmpRouteStrings,
            Constants.CenterAtlantic,
            Constants.CenterAtlantic)
 {
     this.Direction = Direction;
 }
Exemple #4
0
 private static IndividualNatsMessage GetMsg(
     IEnumerable <IndividualNatsMessage> msgs, NatsDirection dir)
 {
     return(msgs.FirstOrDefault(i => i.Direction == dir));
 }