public AusotsParser( ITrackMessage data, StatusRecorder statusRecorder, AirportManager airportList) { allTxt = ((AusotsMessage)data).AllText; this.statusRecorder = statusRecorder; this.airportList = airportList; }
// @Throws private async Task GetTracksAsync(ITrackMessageProvider provider, StatusRecorder r) { try { Message = await provider.GetMessageAsync(); } catch { AddFailRecord(r); throw; } }
// @Throws private void GetTracks(ITrackMessageProvider provider, StatusRecorder r) { try { Message = provider.GetMessage(); } catch { AddFailRecord(r); throw; } }
private void SetTrackMessageAndEnable(TrackType type, ITrackMessage message) { var h = GetHandler(type); StatusRecorder.Clear(type); h.UndoEdit(); h.GetAllTracks(new TrackMessageProvider(message), StatusRecorder); h.AddToWaypointList(StatusRecorder); InvokeTrackMessageUpdated(); InvokeStatusChanged(type); }
public static ITrackParser <T> GetParser <T>(ITrackMessage msg, StatusRecorder statusRecorder, AirportManager airportList) where T : Track { var type = GetTrackType <T>(); if (type == TrackType.Nats) { return((ITrackParser <T>) new NatsParser(msg, statusRecorder)); } else if (type == TrackType.Pacots) { return((ITrackParser <T>) new PacotsParser(msg, airportList)); } else if (type == TrackType.Ausots) { return((ITrackParser <T>) new AusotsParser(msg, statusRecorder, airportList)); } throw new ArgumentException(); }
public PacotsParser(ITrackMessage message, AirportManager airportList) { this.message = (PacotsMessage)message; this.airportList = airportList; }
public void SetTrackMessageAndEnable(TrackType type, ITrackMessage message, ActionSequence seq) { queues.EnqueueSyncTask(type, () => SetTrackMessageAndEnable(type, message), seq); }
public TrackMessageProvider(ITrackMessage msg) { this.msg = msg; }
public NatsParser(ITrackMessage message, StatusRecorder statusRecorder) { this.message = (NatsMessage)message; this.statusRecorder = statusRecorder; }