private void ReportProblem(string message, string tempPath)
{
if (File.Exists(tempPath))
{
try
{
File.Delete(tempPath);
}
catch (IOException)
{
// Can't even clean up. Sigh.
}
}
m_ui.DisplayMessage(MessageType.Error, message, Strings.ksProblemWritingFile, null);
}