title: Trying to call another GUI method within a different method c#
body: <p>I'm having a little trouble concisely describing what it is that I'm trying to do, which is hurting my ability to search for an answer. I'll try to be specific with my problem, if anyone could give a suggestion or point me in the direction of what to study, I'd greatly appreciate it.Tr</p>
  
  <p>I'm trying to program a GUI version of the cardgame Dominion, where playing different cards will yield different results and choices. Many of these cards have similar starting choices (e.g. select a card from your hand and trash it/look at enemy hand), but different ending choices (e.g. upgrade that trashed card/give trashed card to another player). upon playing a card, the program looks for the unique numeric card code and begins executing code specific to that card.</p>
  
  <p>Here's where I'm hung up:</p>
  
  <p>I'd like to have more general methods that listen for user input INSIDE the unique card-code, but I keep getting errors. Ideally, I'd be able to do something like</p>
  
  <pre><code>for(int i = 0; i &lt; totalPlayers; i++)
  {
      showEnemyHand(i);
  }
  </code></pre>
  
  <p>or </p>
  
  <pre><code>for(int i = 0; i &lt; totalPlayers; i++)
  {
      thiefEffect(i);
  }
  </code></pre>
  
  <p>within a 'buttonclicked' event (the "play card" button, specifically.) The showEnemyHand(int) and thiefEffect(int) method would wait for user input, store responses, and then return right back to the for loop that it was called from, but its not as easy as I'd originally hoped. </p>
  
  <p>I'm suffering most from not even knowing what it is that I should be searching for. I've been reading up on event handling and delegates, and I'm not sure that's what I need. Can anyone point me in the direction of what I need to learn, or maybe give me the topic of what I'm trying to solve so I can search for it a little easier? (of course, helping me solve it would be appreciated too =D)</p>
  
  <p>Thanks a bunch!
  Jake</p>