EndProgress() public méthode

public EndProgress ( ) : void
Résultat void
 public void EndProgress()
 {
     Window.IsWorking = false;
     widget.ShowStatus(" " + GettextCatalog.GetString("Search completed") + " - " +
                       string.Format(GettextCatalog.GetPluralString("{0} match.", "{0} matches.", widget.ResultCount), widget.ResultCount));
     widget.EndProgress();
     if (FocusPad)
     {
         widget.FocusPad();
     }
 }
Exemple #2
0
 public void EndProgress()
 {
     Window.IsWorking = false;
     if (CancellationTokenSource.Token.IsCancellationRequested)
     {
         widget.ShowStatus(" " + GettextCatalog.GetString("Search cancelled"));
     }
     else
     {
         widget.ShowStatus(" " + GettextCatalog.GetString("Search completed") + " - " +
                           string.Format(GettextCatalog.GetPluralString("{0} match.", "{0} matches.", widget.ResultCount), widget.ResultCount));
     }
     widget.EndProgress();
     if (FocusPad)
     {
         widget.FocusPad();
     }
 }