title: passing data from a windows form to a xaml.cs file
body: <p>I'm using WPF for creating my application, I am calling a windows form using formobject.Show() 
  from a xaml.cs file,</p>
  
  <p>In the form I have Accept button and a cancel button . How to make the xaml.cs file know which button is clicked by the user in the form.? As the Execution(in ###.xaml.cs) depends on the button clicked.  </p>