static public void OpenResource(string resourcePath, string windowTitle) { HelpDocument doc = new HelpDocument(); doc.Text = windowTitle; Assembly asm = Assembly.GetExecutingAssembly(); Stream stm = asm.GetManifestResourceStream(resourcePath); doc.rtbMain.LoadFile(stm, RichTextBoxStreamType.RichText); stm.Close(); doc.Show(); }
void OpenHelpDocument(object sender, EventArgs e) { HelpDocument.OpenResource("WaveTransforms.WaveTransforms.rtf", "Wave Transforms Plugin"); }