internal static void RestoreProject(Form dialogOwner, FwApp fwApp)
{
string databaseName = (Cache != null) ? Cache.ProjectId.Name : string.Empty;
using (RestoreProjectDlg dlg = new RestoreProjectDlg(databaseName, fwApp.ApplicationName, fwApp))
{
if (dlg.ShowDialog(dialogOwner) != DialogResult.OK)
return;
HandleRestoreRequest(dialogOwner, new FwRestoreProjectSettings(GetCommandLineAbbrevForAppName(fwApp.ApplicationName),
dlg.Settings));
}
}