Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: dd25fb6ebd
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (14 sloc) 0.453 kb
using System.Windows;
using EnvDTE;
public static class UnsaveProjectChecker
{
public static bool HasUnsavedPendingChanges(Project project)
{
if (project.Saved)
{
return false;
}
MessageBox.Show("This action needs to modify your project file. Please save your pending changes and try again.", string.Format("Please save '{0}' first.", project.Name), MessageBoxButton.OK);
return true;
}
}
Jump to Line
Something went wrong with that request. Please try again.