无论如何你可以从这样的另一个方法中退出一个方法吗?
if (workisdone())
Xceed.Wpf.Toolkit.MessageBox.Show("Done");
return.workisdone(); // or something like that?????
DispatcherTimer timer = (DispatcherTimer)sender;
timer.Stop();
timer = null;
}
}