private bool UpgradeOldProject()
{
if (DiagramViewModel.NeedsUpgrade)
{
var rect = new Rect(50f, 50f, 200f, 75f);
GUI.Box(rect, string.Empty);
GUILayout.BeginArea(rect);
GUILayout.Label("You need to upgrade to the new " + Environment.NewLine +
"file format for future compatability.");
if (GUILayout.Button("Upgrade Now"))
{
DiagramViewModel.UpgradeProject();
return(true);
}
GUILayout.EndArea();
}
return(false);
}