C2019-024 Turn on User Manual option in the help drop down menu

This commit is contained in:
2019-05-23 14:22:27 +00:00
parent 58a9467542
commit da08428198
3 changed files with 265 additions and 264 deletions

View File

@@ -4143,6 +4143,9 @@ namespace VEPROMS
}
}
// C2019-024 Display the PROMS User Manual when user click on the option in the Help drop down menu
// PROMS looks for "PROMSmanual.pdf" in the executable folder. If not found, a message box
// will display.
private void btnHelpManual_Click(object sender, EventArgs e)
{
string promsUserManual = System.Windows.Forms.Application.StartupPath + @"\PROMSManual.pdf";
@@ -4155,13 +4158,13 @@ namespace VEPROMS
}
else
{
MessageBox.Show("The PROMS User Manual is not available for viewing.\nDetails in the error log.", "View User Manual");
MessageBox.Show("The PROMS User Manual is not available for viewing.\nDetails are in the error log.", "View User Manual");
_MyLog.WarnFormat("PROMS User Manual not found: {0}", promsUserManual);
}
}
catch (Exception ex)
{
MessageBox.Show("Could not open the PROMS User Manual.\nDetails in the error log.", "View User Manual");
MessageBox.Show("Could not open the PROMS User Manual.\nDetails are in the error log.", "View User Manual");
string str = string.Format("Could not open {0}", promsUserManual);
_MyLog.Error(str,ex);
}