forked from cdj68765/PEPlugin-Git
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathClass2.cs
344 lines (305 loc) · 12.5 KB
/
Class2.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
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
using MetroFramework.Forms;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Reflection;
using System.Resources;
using System.Runtime.Serialization;
using System.Windows.Forms;
namespace PE多功能信息处理插件
{
public class Class2
{
public static List<MetroForm> ListForm = new List<MetroForm>();
public static Metroform newopen;
public static Dictionary<string, BezierPoint> HisForm = new Dictionary<string, BezierPoint>();
public static ResourceManager Language;
public static Button btnGetObject = null;
public static ToolStripItem FormTopMost = null;
public static Color[] color = new Color[]
{
Color.Green,Color.AntiqueWhite,Color.Aqua,Color.Aquamarine,Color.Azure,Color.Beige,Color.Bisque,Color.Black,Color.BlanchedAlmond
,Color.Blue,Color.BlueViolet,Color.Brown,Color.BurlyWood,Color.CadetBlue,Color.Chartreuse,Color.Chocolate,Color.Coral,Color.CornflowerBlue,Color.Cornsilk,Color.Crimson
,Color.Cyan,Color.DarkBlue,Color.DarkCyan,Color.DarkGoldenrod,Color.DarkGray,Color.DarkGreen,Color.DarkKhaki,Color.DarkMagenta,Color.DarkOliveGreen,Color.DarkOrange
,Color.DarkOrchid,Color.DarkRed,Color.DarkSalmon,Color.DarkSeaGreen,Color.DarkSlateBlue,Color.DarkSlateGray,Color.DarkTurquoise,Color.DarkViolet,Color.DeepSkyBlue
,Color.DeepPink,Color.DimGray,Color.DodgerBlue,Color.Firebrick,Color.FloralWhite,Color.ForestGreen,Color.Fuchsia,Color.Gainsboro,Color.GhostWhite,Color.Gold,Color.Goldenrod
,Color.Gray,Color.AliceBlue,Color.GreenYellow,Color.Honeydew,Color.HotPink,Color.IndianRed,Color.Indigo,Color.Ivory,Color.Khaki,Color.Lavender,Color.LavenderBlush,Color.LawnGreen
,Color.LemonChiffon,Color.LightBlue,Color.LightCoral,Color.LightCyan,Color.LightGoldenrodYellow,Color.LightGray,Color.LightGreen,Color.LightPink,Color.LightSalmon,Color.LightSeaGreen
,Color.LightSkyBlue,Color.LightSlateGray,Color.LightSteelBlue,Color.LightYellow,Color.Lime,Color.LimeGreen,Color.Linen,Color.Magenta,Color.Maroon,Color.MediumAquamarine,Color.MediumBlue
,Color.MediumOrchid,Color.MediumPurple,Color.MediumSeaGreen,Color.MediumSlateBlue,Color.MediumSpringGreen,Color.MediumTurquoise,Color.MediumVioletRed,Color.MidnightBlue,Color.MintCream
,Color.MistyRose,Color.Moccasin,Color.NavajoWhite,Color.Navy,Color.OldLace,Color.Olive,Color.OliveDrab,Color.Orange,Color.OrangeRed,Color.Orchid,Color.PaleGoldenrod,Color.PaleGreen,Color.PaleTurquoise
,Color.PaleVioletRed,Color.PapayaWhip,Color.PeachPuff,Color.Peru,Color.Pink,Color.Plum,Color.PowderBlue,Color.Purple,Color.Red,Color.RosyBrown,Color.RoyalBlue,Color.SaddleBrown,Color.Salmon,Color.SandyBrown
,Color.SeaGreen,Color.SeaShell,Color.Sienna,Color.Silver,Color.SkyBlue,Color.SlateBlue,Color.SlateGray,Color.Snow,Color.SpringGreen,Color.SteelBlue,Color.Tan,Color.Teal,Color.Thistle,Color.Tomato,Color.Transparent
,Color.Turquoise,Color.Violet,Color.Wheat,Color.White,Color.WhiteSmoke,Color.Yellow,Color.YellowGreen
};
[Serializable]
public class BootState
{
public int openstate { get; set; }
public int Keystate { get; set; }
public int StyleState { get; set; }
public int FormX { get; set; }
public int FormY { get; set; }
public int FormForSizeX { get; set; }
public int FormForSizeY { get; set; }
public int AutoOpen { get; set; }
public int WeightGetKey { get; set; }
public int WeightAddKey { get; set; }
public int WeightMinusKey { get; set; }
public int WeightAppleKey { get; set; }
public string OldOpen;
public OpenHis[] HisOpen;
public int FormTopmost;
public int BezierFirstColor;
public int BezierSecondColor;
public float BezierLinkSize;
public int ShowUpdata;
public int FormTop;
public int UpdataDateCheck;
public BootState(int open, int Key, int Style)
{
openstate = open;
Keystate = Key;
this.StyleState = Style;
}
}
[Serializable]
public class OpenHis
{
public string modelname;
public string modelpath;
public string modeldata;
public OpenHis(string modelName, string filePath, string modeldata)
{
if (modelName == "")
{
if (filePath != "")
{
modelName = new FileInfo(filePath).Name;
}
}
this.modelname = modelName;
this.modelpath = filePath;
this.modeldata = modeldata;
}
}
public class FormText
{
public string OriText;
public string TransText;
public string ControlName;
public int Count;
public FormText() { }
public FormText(string v1, int v2, string v3)
{
this.OriText = v1;
this.Count = v2;
this.ControlName = v3;
}
public FormText(string OriText, int Count, string ControlName, string TransText)
{
this.OriText = OriText;
this.Count = Count;
this.ControlName = ControlName;
this.TransText = TransText;
}
}
public class OperaList
{
public List<int> Count;
public OperaList(List<int> Count)
{
this.Count = Count;
}
}
public class UBinder : SerializationBinder
{
public override Type BindToType(string assemblyName, string typeName)
{
if (typeName.EndsWith("keySet"))
{
return typeof(keySet);
}
/* if (typeName.StartsWith("System.Collections.Generic.List"))
{
return Type.GetType(String.Format("{0}, {1}", typeName, assemblyName));
}*/
return (Assembly.GetExecutingAssembly()).GetType(typeName);
}
}
public class BezierPoint
{
public Point p1;
public Point p2;
public Point p3;
public Point p4;
public BezierPoint(Point p1, Point p2, Point p3, Point p4)
{
this.p1 = p1;
this.p2 = p2;
this.p3 = p3;
this.p4 = p4;
}
}
public class TabInfo
{
public int TabID;
public string TabName;
public List<KeyInfo> KeyLIst = new List<KeyInfo>();
public TabInfo(int tabID, string tabName, string itemname, string itemKey, int itemLocalX, int itemLocaly, string itemFun)
{
TabID = tabID;
TabName = tabName;
KeyLIst.Add(new KeyInfo(itemname, itemKey, itemLocalX, itemLocaly, itemFun));
}
public class KeyInfo
{
public int itemLocalX;
public int itemLocaly;
public string itemKey;
public string itemFun;
public string itemname;
public KeyInfo(string itemname, string itemKey, int itemLocalX, int itemLocaly, string itemFun)
{
this.itemname = itemname;
this.itemKey = itemKey;
this.itemLocalX = itemLocalX;
this.itemLocaly = itemLocaly;
this.itemFun = itemFun;
}
}
}
public class ItemDate
{
public int Count;
public double FirstNummer;
public double SecendNummer;
public ItemDate(int v1, double v2)
{
this.Count = v1;
this.FirstNummer = v2;
}
public ItemDate(int v1, double v2, double v) : this(v1, v2)
{
this.SecendNummer = v;
}
}
public class TheDataForBezier
{
public string mode;
public string FirstNummerLow;
public string LastNummerLow;
public string FirstNummerHigh;
public string LastNummerHigh;
public int[] ItemCount;
public OperaList[] ListItemCount;
public List<ItemDate> SaveItem;
public int UseMode = 0;
public TheDataForBezier(string v1, string text1, string text2, int[] v2)
{
this.mode = v1;
this.FirstNummerLow = text1;
this.LastNummerLow = text2;
this.ItemCount = v2;
}
public TheDataForBezier(string v1, string text1, string text2, OperaList[] v2)
{
this.mode = v1;
this.FirstNummerLow = text1;
this.LastNummerLow = text2;
this.ListItemCount = v2;
}
public TheDataForBezier(string v1, string text1, string text2, string limit_MoveHigh_FirstXNummer, string limit_MoveHigh_LastXNummer, int[] v2)
{
this.mode = v1;
this.FirstNummerLow = text1;
this.LastNummerLow = text2;
this.FirstNummerHigh = limit_MoveHigh_FirstXNummer;
this.LastNummerHigh = limit_MoveHigh_LastXNummer;
this.ItemCount = v2;
}
public TheDataForBezier(string v1, string text1, string text2, string limit_MoveHigh_FirstXNummer, string limit_MoveHigh_LastXNummer, OperaList[] v2)
{
this.mode = v1;
this.FirstNummerLow = text1;
this.LastNummerLow = text2;
this.FirstNummerHigh = limit_MoveHigh_FirstXNummer;
this.LastNummerHigh = limit_MoveHigh_LastXNummer;
this.ListItemCount = v2;
}
}
[Serializable]
public class keySet
{
public int TabID;
public string TabName;
public string itemname;
public int itemLocalX;
public int itemLocaly;
public string itemKey;
public string itemFun;
[NonSerialized]
public ToolItemInfo item;
public keySet(int TabID, string TabName, string itemname, int itemLocalX, int itemLocaly, string itemKey, string itemFun)
{
this.TabID = TabID;
this.TabName = TabName;
this.itemname = itemname;
this.itemLocalX = itemLocalX;
this.itemLocaly = itemLocaly;
this.itemKey = itemKey;
this.itemFun = itemFun;
}
}
public class ToolItemInfo
{
public ToolItemInfo(ToolStripMenuItem temp4)
{
this.Item = temp4;
}
public ToolItemInfo(ToolStripMenuItem temp4, string v)
{
this.Item = temp4;
this.path = v;
}
public ToolStripMenuItem Item { get; set; }
public string path { get; set; }
}
[Serializable]
public class MorphOpera
{
public Morph[] MorphList;
[Serializable]
public class Morph
{
public String MorphName;
public int Panel;
public Vertex[] VertexList;
[Serializable]
public class Vertex
{
public int index;
public float tox;
public float toy;
public float toz;
}
}
public Index[] IndexList;
[Serializable]
public class Index
{
public int index;
public int toindex;
public float x;
public float y;
public float z;
public float UVX;
public float UVY;
public float NormalX;
public float NormalY;
public float NormalZ;
}
}
}
}