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(); } }
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(); } }