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 to stop execution after once message box is displayed. Provide me a solution. Thanks.
You could return a boolean:
And then you call like this: