protected override bool OpenFormData(string sFileName)
{
Cursor = Cursors.WaitCursor;
try
{
ProjectManager.Instance.OpenProject(sFileName);
}
catch (Exception ex)
{
FormUtils.ShowErrorMessage("Failed to load: " + sFileName + "::" + ex);
}
Cursor = Cursors.Default;
if (null != ProjectManager.Instance.LoadedProject)
{
UpdateProjectsList(sFileName);
bool bHasExternalReference = ProjectManager.Instance.LoadedProject.HasExternalReference();
if (bHasExternalReference)
{
UpdateGoogleAuth(null, () =>
{
MessageBox.Show(this, "You will be unable to view the layouts for any references that are Google Spreadsheets.", "Reference Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
});
}
return true;
}
return false;
}