void OnReplaceButtonClicked(object o, EventArgs args) { try { UpdateSearchPattern(); UpdateReplacePattern(); this.Sensitive = false; finder.Replace(replacePattern); finder.FindNext(FindNextAsyncCallback); } catch (FormatException) { } }