How to stop function once message box displayed
问题 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.. } 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