How to call a function when you don't know what function to call? - C#