title: I want to check which button was clicked
body: <p>Right now I have a main form that copies a file to another directory.</p>
  
  <p>I want to handle the case 'a file of the same name already exists' in a catch statement.</p>
  
  <p>I want this to be done by it popping up another window asking whether to replace or keep via buttons. Then using an if statement to check which button was clicked</p>
  
  <p>Current code:</p>
  
  <pre><code>        catch (IOException x)
              {
                  Copy copy = new Copy();
                  copy.ShowDialog();
              }
  </code></pre>
  
  <p>Goal:</p>
  
  <pre><code>        catch (IOException x)
              {
                  Copy copy = new Copy();
                  copy.ShowDialog();
  
                      if (//Replace button was clicked)
                          do this
                      else if (//Keep button was clicked)
                          do this
              }
  </code></pre>
  
  <p>I can't seem to find the methods that serve this purpose.</p>