【发布时间】:2012-10-05 10:18:55
【问题描述】:
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..
}
我从 CreateFileOutput() 调用 TransactFileCreation()。一旦显示消息框,该功能将不再起作用。但就我而言,它再次转到主功能并显示其中存在的消息框。显示一次消息框后如何停止执行。给我一个解决方案。谢谢。
【问题讨论】:
-
您要关闭应用程序吗?
标签: c# wpf function c#-4.0 c#-3.0