title: C# checking what button was pressed
body: <p>I know about <a href="https://stackoverflow.com/questions/16553768/c-sharp-checking-if-button-was-clicked">this question</a> but it does not addres my issue.</p>
  
  <p>Suppose we have two buttons that do the very same thing (load csv file and feed the data in two variables) but on two different sets of variables. I can write two functions dedicated to both functions, but they will share too much common code.</p>
  
  <p>How can I detect what button called the callback function to decide what set of variables to work on?</p>