public bool tryCancel() { if (cancelPending) { setEnabled(true); updateStatus("User cancelled operation.", LogIcon.Error, false); refreshModList(false, txtSearch.Text); return true; } return false; }