title: How to stop function once message box displayed
body: <pre><code>public void CreateFileOutput(object parameter)
  {
      TransactFileCreation();
  
      WPFMessageBox.Show("test", "Process completed successfully.");
  }
  
  public void TransactFileCreation()
  {
      if (BatchFolderPath == null)
      {
           WPFMessageBox.Show("test", "Select a Batch folder");
           return;
      }
      // code..
  }
  </code></pre>
  
  <p>I am calling TransactFileCreation() from CreateFileOutput(). Once Msg Box displayed, further the function should not work. But in my case, it again go to the main function and displaying msg box present in that. How to stop execution after once message box is displayed. Provide me a solution. Thanks.</p>