There are a couple of ways to do that.
Simple way: add a "SetSelection" option (could be bool, could be an enum) and test it in your code to decide which method to call.
Complex way: Use
Delegates[
^] to "preload" the method you want to call and then call the delegate.
The latter way is a lot more efficient, but is more complex to set up, more complex to maintain, and needs care to avoid runtime errors.