void OnReplaceAllButtonClicked(object o, EventArgs args) { try { UpdateSearchPattern(); UpdateReplacePattern(); this.Sensitive = false; finder.ReplaceAll(replacePattern, ReplaceAllAsyncCallback); } catch (FormatException) { } }