-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathModule1.vb
More file actions
141 lines (121 loc) · 5.25 KB
/
Module1.vb
File metadata and controls
141 lines (121 loc) · 5.25 KB
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
Imports System.Xml
Module Module1
Sub LegendzIndexes(ByVal exepath As String)
Dim count As Integer
Dim xmlFile As XmlReader
xmlFile = XmlReader.Create(exepath & "LegendzDB.xml")
Dim ds As New DataSet
Dim dv As DataView
ds.ReadXml(xmlFile)
'Load Legendz IDs
dv = New DataView(ds.Tables(0))
dv.Sort = "index"
count = 0
Do
Dim index As Integer = dv.Find(count)
If index = -1 Then
Exit Do
Else
Form1.ComboBox1.Items.Insert(count, dv(index)("name").ToString())
End If
count = count + 1
Loop
'Load Elements
dv = New DataView(ds.Tables(1))
dv.Sort = "index"
count = 0
Do
Dim index As Integer = dv.Find(count)
If index = -1 Then
Exit Do
Else
Form1.ElementC.Items.Insert(count, dv(index)("name").ToString())
End If
count = count + 1
Loop
'Load Ranks
dv = New DataView(ds.Tables(2))
dv.Sort = "index"
count = 0
Do
Dim index As Integer = dv.Find(count)
If index = -1 Then
Exit Do
Else
Form1.RankC.Items.Insert(count, dv(index)("name").ToString())
End If
count = count + 1
Loop
'Load Temperatures
dv = New DataView(ds.Tables(3))
dv.Sort = "index"
count = 0
Do
Dim index As Integer = dv.Find(count)
If index = -1 Then
Exit Do
Else
Form1.TemperatureC.Items.Insert(count, dv(index)("name").ToString())
End If
count = count + 1
Loop
'Load Humidity
dv = New DataView(ds.Tables(4))
dv.Sort = "index"
count = 0
Do
Dim index As Integer = dv.Find(count)
If index = -1 Then
Exit Do
Else
Form1.HumidityC.Items.Insert(count, dv(index)("name").ToString())
End If
count = count + 1
Loop
'Load Move Names
dv = New DataView(ds.Tables(5))
dv.Sort = "index"
count = 0
Do
Dim index As Integer = dv.Find(count)
If index = -1 Then
Exit Do
Else
Form1.ShiftE1.Items.Insert(count, dv(index)("name").ToString())
Form1.ShiftE2.Items.Insert(count, dv(index)("name").ToString())
Form1.ShiftE3.Items.Insert(count, dv(index)("name").ToString())
Form1.StMove1.Items.Insert(count, dv(index)("name").ToString())
Form1.StMove2.Items.Insert(count, dv(index)("name").ToString())
Form1.StMove3.Items.Insert(count, dv(index)("name").ToString())
Form1.StMove4.Items.Insert(count, dv(index)("name").ToString())
Form1.StMove5.Items.Insert(count, dv(index)("name").ToString())
Form1.StMove6.Items.Insert(count, dv(index)("name").ToString())
Form1.StMove7.Items.Insert(count, dv(index)("name").ToString())
Form1.StMove8.Items.Insert(count, dv(index)("name").ToString())
Form1.StMove9.Items.Insert(count, dv(index)("name").ToString())
Form1.StMove10.Items.Insert(count, dv(index)("name").ToString())
Form1.StMove11.Items.Insert(count, dv(index)("name").ToString())
Form1.StMove12.Items.Insert(count, dv(index)("name").ToString())
Form1.StMove13.Items.Insert(count, dv(index)("name").ToString())
Form1.StMove14.Items.Insert(count, dv(index)("name").ToString())
Form1.StMove15.Items.Insert(count, dv(index)("name").ToString())
Form1.CurMove1.Items.Insert(count, dv(index)("name").ToString())
Form1.CurMove2.Items.Insert(count, dv(index)("name").ToString())
Form1.CurMove3.Items.Insert(count, dv(index)("name").ToString())
Form1.CurMove4.Items.Insert(count, dv(index)("name").ToString())
Form1.CurMove5.Items.Insert(count, dv(index)("name").ToString())
Form1.CurMove6.Items.Insert(count, dv(index)("name").ToString())
Form1.CurMove7.Items.Insert(count, dv(index)("name").ToString())
Form1.CurMove8.Items.Insert(count, dv(index)("name").ToString())
Form1.CurMove9.Items.Insert(count, dv(index)("name").ToString())
Form1.CurMove10.Items.Insert(count, dv(index)("name").ToString())
Form1.CurMove11.Items.Insert(count, dv(index)("name").ToString())
Form1.CurMove12.Items.Insert(count, dv(index)("name").ToString())
Form1.CurMove13.Items.Insert(count, dv(index)("name").ToString())
Form1.CurMove14.Items.Insert(count, dv(index)("name").ToString())
Form1.CurMove15.Items.Insert(count, dv(index)("name").ToString())
End If
count = count + 1
Loop
End Sub
End Module