예제 #1
0
        /// <summary>
        /// Load the tracks and undo previous edit to wptList.
        /// </summary>
        public void GetAllTracks(ITrackMessageProvider provider, StatusRecorder r)
        {
            try
            {
                GetTracks(provider, r);
                ReadMessage(r);
            }
            catch { }

            UndoEdit();
        }
예제 #2
0
 // @Throws
 private async Task GetTracksAsync(ITrackMessageProvider provider, StatusRecorder r)
 {
     try
     {
         Message = await provider.GetMessageAsync();
     }
     catch
     {
         AddFailRecord(r);
         throw;
     }
 }
예제 #3
0
 // @Throws
 private void GetTracks(ITrackMessageProvider provider, StatusRecorder r)
 {
     try
     {
         Message = provider.GetMessage();
     }
     catch
     {
         AddFailRecord(r);
         throw;
     }
 }