Exemplo n.º 1
0
 /// <summary>
 /// This is a callback method that is always called when
 /// the internal load process is finished
 /// (even when it failed to finish after initialization).
 /// </summary>
 /// <param name="loadWasSuccessful"></param>
 private void LoadFinishedEvent(bool loadWasSuccessful)
 {
     if (loadWasSuccessful)
     {
         _fileLoader = new LogFileLoader();
         _fileLoader.LoadResultEvent          += RefreshCommandsCanExecute;
         ManageRepositoriesViewModel.IsLoading = true;
         _fileLoader.ExecuteAsynchronously(delegate
         {
             LogEntryRows.SetEntries(
                 ManageRepositoriesViewModel.Repositories.ToList());
         }, true);
     }
     _logEntryRows.FilterViewModel.Analysis = YalvRegistry.Instance.ActualWorkspace.CurrentAnalysis;
     _manageTextMarkersViewModel.Analysis   = YalvRegistry.Instance.ActualWorkspace.CurrentAnalysis;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Implementation of the Refresh command (reload data and apply filters)
 /// </summary>
 /// <param name="parameter"></param>
 /// <returns></returns>
 internal virtual object CommandRefreshExecute(object parameter)
 {
     LogEntryRows.CommandRefreshExecute(LoadFinishedEvent);
     return(null);
 }