-
Notifications
You must be signed in to change notification settings - Fork 0
/
Helpwindow.cs
110 lines (84 loc) · 3.79 KB
/
Helpwindow.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication5
{
public partial class Helpwindow : Form
{
enum Nodelist {Readme };
public Helpwindow()
{
InitializeComponent();
}
private void Helpwindow_Load(object sender, EventArgs e)
{
}
private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
{
}
private void treeView1_MouseDown(object sender, MouseEventArgs e)//クリックしたNodeの名前を取得して下のhtml_reference関数を呼び出す
{
TreeViewHitTestInfo ht = treeView1.HitTest(e.Location);
if (ht.Location == TreeViewHitTestLocations.Label) {
ht.Node.Checked = !ht.Node.Checked;
html_Reference(ht.Node.Text);
}
}
private void html_Reference(string TVNodeText) //クリックしたNodeのテキストを参照し、表示
{
string _currentfilepath = Application.StartupPath;
switch (TVNodeText) {
case "Readme":
helpHtmlView.Navigate(_currentfilepath + "\\HelpHtmls\\FFEヘルプ\\FstFileEditorhelp.html");
break;
case "MMDAgentの操作方法(key)":
helpHtmlView.Navigate(_currentfilepath+"\\helps\\operateMMDAkey.htm");
break;
case "MMDAgentの操作方法(mouse)":
helpHtmlView.Navigate(_currentfilepath + "\\helps\\operateMMDAmouse.htm");
break;
case "FstFileEditor基本操作(メニュー編)":
helpHtmlView.Navigate(_currentfilepath + "\\helps\\basishelp_menu.htm");
break;
case "FstFileEditor基本操作(入力編)":
helpHtmlView.Navigate(_currentfilepath + "\\helps\\basishelp_input.htm");
break;
case "モデルタブ":
helpHtmlView.Navigate(_currentfilepath+"\\helps\\modeltab.htm");
break;
case "モーションタブ":
helpHtmlView.Navigate(_currentfilepath+"\\helps\\motiontab.htm");
Console.WriteLine(_currentfilepath);
break;
case "移動・回転タブ":
helpHtmlView.Navigate(_currentfilepath + "\\helps\\move_rotationtab.htm");
Console.WriteLine(_currentfilepath);
break;
case "音楽・画像タブ":
helpHtmlView.Navigate(_currentfilepath + "\\helps\\music_picture.htm");
Console.WriteLine(_currentfilepath);
break;
case "カメラ・照明タブ":
helpHtmlView.Navigate(_currentfilepath + "\\helps\\camera_lightning.htm");
Console.WriteLine(_currentfilepath);
break;
case "音声認識・合成タブ":
helpHtmlView.Navigate(_currentfilepath + "\\helps\\synth_compose.htm");
Console.WriteLine(_currentfilepath);
break;
case "その他タブ":
helpHtmlView.Navigate(_currentfilepath + "\\helps\\othertab.htm");
Console.WriteLine(_currentfilepath);
break;
}
}
private void helpHtmlView_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
}
}
}