我有一个WinForms GUI界面,其中有一个“帮助”上下文菜单。当用户点击时,我想打开应用程序的用户手册。该手册是一个存储在应用程序资源中的PDF文件。
问题:如何为用户打开它?
我正在使用的代码:
System.Diagnostics.Process process = new System.Diagnostics.Process();
bool adobeInstall = false;
RegistryKey adobe = Registry.LocalMachine.OpenSubKey("Software").OpenSubKey("Adobe");
if (adobe != null)
{
RegistryKey acroRead = adobe.OpenSubKey("Acrobat Reader");
if (acroRead != null)
adobeInstall = true;
}
if (adobeInstall == true)
{
///Open the pdf file??
}