Example #1
0
        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();
        }
Example #2
0
 void OpenHelpDocument(object sender, EventArgs e)
 {
     HelpDocument.OpenResource("WaveTransforms.WaveTransforms.rtf", "Wave Transforms Plugin");
 }