Exemplo n.º 1
0
 private void HelpForm_Activated(object sender, EventArgs e)
 {
     if (helpTypeId == 6)
     {
         path = Application.StartupPath + "\\" + "Help_Main.rtf";
         helpRichTextBox.LoadFile(path);
     }
     else
     {
         string helpName = "";
         helpName = HelpSubtype.GetName(typeof(HelpSubtype), helpTypeId).ToString();
         path     = Application.StartupPath + "\\Help_" + helpName + ".rtf";
         helpRichTextBox.LoadFile(path);
     }
 }
Exemplo n.º 2
0
        private void topicsTree_AfterSelect(object sender, TreeViewEventArgs e)
        {
            string helpName = "";

            if (e.Node.Text == "Help")
            {
                path = Application.StartupPath + "\\" + "Help_Main.rtf";
                helpRichTextBox.LoadFile(path);
                return;
            }
            helpName = HelpSubtype.GetName(typeof(HelpSubtype), e.Node.Index + 1).ToString();
            if (helpName != "")
            {
                path = Application.StartupPath + "\\Help_" + helpName + ".rtf";
                helpRichTextBox.LoadFile(path);
            }
        }