-
Notifications
You must be signed in to change notification settings - Fork 0
/
MMDACRHtmlView.cs
64 lines (59 loc) · 2.24 KB
/
MMDACRHtmlView.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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace FstFileEditor
{
public partial class MMDACRHtmlView : UserControl
{
string currentPath;
List<Refinfo> refInfoList = new List<Refinfo>();
struct Refinfo
{
public string タブ名;
public string URI;
public Refinfo(string _tabname, string uri)
{
タブ名 = _tabname;
URI = uri;
}
}
public MMDACRHtmlView(String Path,String listSelectedName)
{
InitializeComponent();
initList();
presentHtml(Path, listSelectedName);
}
private void initList()
{
refInfoList.Add(new Refinfo("はじめに", "MMDAbase.html"));
refInfoList.Add(new Refinfo("MODEL", "ModelTab.html"));
refInfoList.Add(new Refinfo("MOTION", "Motiontab.html"));
refInfoList.Add(new Refinfo("MOVE&ROTATE", "MoveandRotatetab.html"));
refInfoList.Add(new Refinfo("SOUND", "Soundtab.html"));
refInfoList.Add(new Refinfo("STAGE", "Stagetab.html"));
refInfoList.Add(new Refinfo("LIGHT", "Lighttab.html"));
refInfoList.Add(new Refinfo("CAMERA", "Cameratab.html"));
refInfoList.Add(new Refinfo("SPEECH", "Speechtab.html"));
refInfoList.Add(new Refinfo("VARIABLE", "Variabletab.html"));
refInfoList.Add(new Refinfo("PLUGIN", "PluginTab.html"));
refInfoList.Add(new Refinfo("OTHER(cmd)", "OtherCmd.html"));
refInfoList.Add(new Refinfo("Free", "FreeTab.html"));
refInfoList.Add(new Refinfo("(MMDAキー)", "MMDAkey.html"));
refInfoList.Add(new Refinfo("(MMDAマウス)", "MMDAmouse.html"));
}
private void presentHtml(string currentPath,String selectedName) {
foreach (Refinfo ri in refInfoList)
{
if (selectedName == ri.タブ名)
{
webBrowser1.Navigate(currentPath + "\\HelpHtmls\\MMDACR\\" + ri.URI);
}
}
}
}
}