Exemplo n.º 1
0
        private void Helper_SearchProgressChanged(string message)
        {
            int percentProgress = 0;

            if (amandaInputParser != null && amandaInputParser.TotalSpectra > 0 && TotalFiles > 0)
            {
                percentProgress  = CurrentFile * 100 / TotalFiles;
                percentProgress += amandaInputParser.CurrentSpectrum * 100 / amandaInputParser.TotalSpectra / TotalFiles;
            }
            SearchProgressChanged?.Invoke(this, new ProgressStatus(message).ChangePercentComplete(percentProgress));
        }
Exemplo n.º 2
0
 public static void OnSearchProgressChanged(int foundedCount, int totalCount)
 {
     SearchProgressChanged?.Invoke(foundedCount, totalCount);
 }
Exemplo n.º 3
0
 internal void OnSearchProgressChanged(object sender, ProgressEventArgs e)
 {
     SearchProgressChanged?.Invoke(sender, e);
 }
Exemplo n.º 4
0
 public UpdateProgressResponse UpdateProgress(IProgressStatus status)
 {
     SearchProgressChanged?.Invoke(this, status);
     return(status.IsCanceled ? UpdateProgressResponse.cancel : UpdateProgressResponse.normal);
 }