Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
DataEditorX
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
聖園ミカ
DataEditorX
Commits
a499a399
Commit
a499a399
authored
May 18, 2014
by
247321453
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GUI
parent
987dec0c
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
1474 additions
and
221 deletions
+1474
-221
DataEditorX/Core/CheckPanel.cs
DataEditorX/Core/CheckPanel.cs
+65
-0
DataEditorX/Core/DataManager.cs
DataEditorX/Core/DataManager.cs
+100
-0
DataEditorX/Data/card-attribute.txt
DataEditorX/Data/card-attribute.txt
+2
-1
DataEditorX/Data/card-category.txt
DataEditorX/Data/card-category.txt
+5
-5
DataEditorX/Data/card-level.txt
DataEditorX/Data/card-level.txt
+14
-0
DataEditorX/Data/card-race.txt
DataEditorX/Data/card-race.txt
+2
-1
DataEditorX/Data/card-rule.txt
DataEditorX/Data/card-rule.txt
+5
-0
DataEditorX/Data/card-setname.txt
DataEditorX/Data/card-setname.txt
+0
-0
DataEditorX/Data/card-type.txt
DataEditorX/Data/card-type.txt
+3
-3
DataEditorX/Data/cover.jpg
DataEditorX/Data/cover.jpg
+0
-0
DataEditorX/Data/ygopro/card-level.txt
DataEditorX/Data/ygopro/card-level.txt
+0
-13
DataEditorX/Data/ygopro/card-rule.txt
DataEditorX/Data/ygopro/card-rule.txt
+0
-4
DataEditorX/DataEditForm.Designer.cs
DataEditorX/DataEditForm.Designer.cs
+961
-0
DataEditorX/DataEditForm.cs
DataEditorX/DataEditForm.cs
+94
-0
DataEditorX/DataEditForm.resx
DataEditorX/DataEditForm.resx
+126
-0
DataEditorX/DataEditorX.csproj
DataEditorX/DataEditorX.csproj
+33
-8
DataEditorX/MainForm.Designer.cs
DataEditorX/MainForm.Designer.cs
+42
-172
DataEditorX/MainForm.cs
DataEditorX/MainForm.cs
+21
-13
DataEditorX/MainForm.resx
DataEditorX/MainForm.resx
+1
-1
No files found.
DataEditorX/Core/CheckPanel.cs
0 → 100644
View file @
a499a399
/*
* 由SharpDevelop创建。
* 用户: Acer
* 日期: 5月18 星期日
* 时间: 20:53
*
*/
using
System
;
using
System.Collections.Generic
;
using
System.Windows.Forms
;
namespace
DataEditorX.Core
{
/// <summary>
/// Description of CheckPanel.
/// </summary>
public
class
CheckPanel
:
FlowLayoutPanel
{
Dictionary
<
long
,
string
>
m_dic
=
null
;
List
<
CheckBox
>
checkBoxList
;
public
CheckPanel
()
{
checkBoxList
=
new
List
<
CheckBox
>();
m_dic
=
new
Dictionary
<
long
,
string
>();
}
public
void
SetDic
(
Dictionary
<
long
,
string
>
dic
)
{
m_dic
=
dic
;
}
public
bool
Init
()
{
if
(
m_dic
==
null
)
return
false
;
this
.
Controls
.
Clear
();
checkBoxList
.
Clear
();
this
.
SuspendLayout
();
int
i
=
0
;
foreach
(
string
str
in
m_dic
.
Values
)
{
i
++;
if
(
str
==
"N/A"
)
continue
;
CheckBox
cbox
=
new
CheckBox
();
cbox
.
Name
=
"cbox"
+
i
.
ToString
();
cbox
.
TabIndex
=
i
;
cbox
.
AutoSize
=
true
;
cbox
.
Margin
=
new
Padding
(
1
,
2
,
1
,
2
);
cbox
.
Text
=
str
;
checkBoxList
.
Add
(
cbox
);
}
this
.
Controls
.
AddRange
(
checkBoxList
.
ToArray
());
this
.
ResumeLayout
(
false
);
this
.
PerformLayout
();
return
true
;
}
public
void
SetNumber
(
long
num
)
{
}
public
long
GetNumber
()
{
return
0
;
}
}
}
DataEditorX/Core/DataManager.cs
0 → 100644
View file @
a499a399
/*
* 由SharpDevelop创建。
* 用户: Acer
* 日期: 5月18 星期日
* 时间: 18:08
*
*/
using
System
;
using
System.IO
;
using
System.Text
;
using
System.Globalization
;
using
System.Collections.Generic
;
namespace
DataEditorX.Core
{
public
class
DataManager
{
#
region
读取
/// <summary>
///
/// </summary>
/// <param name="strFile"></param>
/// <returns></returns>
public
static
Dictionary
<
long
,
string
>
Read
(
string
strFile
)
{
Dictionary
<
long
,
string
>
m_dic
=
new
Dictionary
<
long
,
string
>();
if
(
File
.
Exists
(
strFile
))
{
using
(
FileStream
fstream
=
new
FileStream
(
strFile
,
FileMode
.
Open
,
FileAccess
.
ReadWrite
))
{
StreamReader
sreader
=
new
StreamReader
(
fstream
,
Encoding
.
UTF8
);
string
line
,
strkey
,
strword
;
int
l
;
long
lkey
;
while
((
line
=
sreader
.
ReadLine
())
!=
null
)
{
if
(
line
.
StartsWith
(
"#"
))
continue
;
if
((
l
=
line
.
IndexOf
(
" "
))
<
0
)
continue
;
strkey
=
line
.
Substring
(
0
,
l
).
Replace
(
"0x"
,
""
);
strword
=
line
.
Substring
(
l
+
1
);
if
(
line
.
StartsWith
(
"0x"
))
long
.
TryParse
(
strkey
,
NumberStyles
.
HexNumber
,
null
,
out
lkey
);
else
long
.
TryParse
(
strkey
,
out
lkey
);
if
(!
m_dic
.
ContainsKey
(
lkey
)
&&
strword
!=
"N/A"
)
m_dic
.
Add
(
lkey
,
strword
);
}
sreader
.
Close
();
fstream
.
Close
();
}
}
return
m_dic
;
}
#
endregion
#
region
查找
/// <summary>
///
/// </summary>
/// <param name="dic"></param>
/// <param name="strValue"></param>
/// <param name="defaultKey"></param>
/// <returns></returns>
public
static
long
GetKey
(
Dictionary
<
long
,
string
>
dic
,
string
strValue
,
long
defaultKey
){
long
lkey
=
defaultKey
;
if
(!
dic
.
ContainsValue
(
strValue
))
return
lkey
;
foreach
(
long
key
in
dic
.
Keys
)
{
if
(
dic
[
key
]==
strValue
)
{
lkey
=
key
;
break
;
}
}
return
lkey
;
}
#
endregion
public
static
string
[]
GetValues
(
Dictionary
<
long
,
string
>
dic
)
{
int
length
=
dic
.
Count
;
string
[]
words
=
new
string
[
1
];
words
[
0
]=
"N/A"
;
if
(
length
>
0
)
{
words
=
new
string
[
length
];
dic
.
Values
.
CopyTo
(
words
,
0
);
}
return
words
;
}
}
}
DataEditorX/Data/
ygopro/
card-attribute.txt
→
DataEditorX/Data/card-attribute.txt
View file @
a499a399
0x1 地
0x0 卡片属性
0x1 地
0x2 水
0x2 水
0x4 炎
0x4 炎
0x8 风
0x8 风
...
...
DataEditorX/Data/
ygopro/
card-category.txt
→
DataEditorX/Data/card-category.txt
View file @
a499a399
...
@@ -10,21 +10,21 @@
...
@@ -10,21 +10,21 @@
0x200 卡组检索
0x200 卡组检索
0x400 卡片回收
0x400 卡片回收
0x800 表示变更
0x800 表示变更
0x1000 控制权
0x1000 控制权
0x2000 攻守变化
0x2000 攻守变化
0x4000 贯穿伤害
0x4000 贯穿伤害
0x8000 多次攻击
0x8000 多次攻击
0x10000 攻击限制
0x10000 攻击限制
0x20000 直接攻击
0x20000 直接攻击
0x40000 特殊召唤
0x40000 特殊召唤
0x80000 衍生物
0x80000 衍生物
0x100000 种族相关
0x100000 种族相关
0x200000 属性相关
0x200000 属性相关
0x400000 LP伤害
0x400000 LP伤害
0x800000 LP回复
0x800000 LP回复
0x1000000 破坏耐性
0x1000000 破坏耐性
0x2000000 效果耐性
0x2000000 效果耐性
0x4000000 指示物
0x4000000 指示物
0x8000000 赌博相关
0x8000000 赌博相关
0x10000000 融合相关
0x10000000 融合相关
0x20000000 同调相关
0x20000000 同调相关
...
...
DataEditorX/Data/card-level.txt
0 → 100644
View file @
a499a399
0x0 卡片等级/阶级
0x1 1★
0x2 2★
0x3 3★
0x4 4★
0x5 5★
0x6 6★
0x7 7★
0x8 8★
0x9 9★
0xa 10★
0xb 11★
0xc 12★
0xd 13★
\ No newline at end of file
DataEditorX/Data/
ygopro/
card-race.txt
→
DataEditorX/Data/card-race.txt
View file @
a499a399
0x1 战士
0x0 卡片种族
0x1 战士
0x2 魔法使
0x2 魔法使
0x4 天使
0x4 天使
0x8 恶魔
0x8 恶魔
...
...
DataEditorX/Data/card-rule.txt
0 → 100644
View file @
a499a399
0x0 卡片规则
0x1 OCG专有
0x2 TCG专有
0x3 OCG&TCG
0x4 Anime/DIY
\ No newline at end of file
DataEditorX/Data/
ygopro/
card-setname.txt
→
DataEditorX/Data/card-setname.txt
View file @
a499a399
File moved
DataEditorX/Data/
ygopro/
card-type.txt
→
DataEditorX/Data/card-type.txt
View file @
a499a399
0x1 怪兽
0x1 怪兽
0x2 魔法
0x2 魔法
0x4 陷阱
0x4 陷阱
0x8 N/A
0x8 N/A
0x10 通常
0x10 通常
0x20 效果
0x20 效果
0x40 融合
0x40 融合
0x80 仪式
0x80 仪式
0x100 N/A
0x100 N/A
0x200 灵魂
0x200 灵魂
0x400 同盟
0x400 同盟
0x800 二重
0x800 二重
0x1000 调整
0x1000 调整
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
0x20000 永续
0x20000 永续
0x40000 装备
0x40000 装备
0x80000 场地
0x80000 场地
0x100000 反击
0x100000 反击
0x200000 反转
0x200000 反转
0x400000 卡通
0x400000 卡通
0x800000 超量
0x800000 超量
...
...
DataEditorX/Data/cover.jpg
0 → 100644
View file @
a499a399
26.3 KB
DataEditorX/Data/ygopro/card-level.txt
deleted
100644 → 0
View file @
987dec0c
1 1★
2 2★
3 3★
4 4★
5 5★
6 6★
7 7★
8 8★
9 9★
10 10★
11 11★
12 12★
13 13★
\ No newline at end of file
DataEditorX/Data/ygopro/card-rule.txt
deleted
100644 → 0
View file @
987dec0c
1 OCG专有
2 TCG专有
3 OCG&TCG
4 Anime/DIY
\ No newline at end of file
DataEditorX/DataEditForm.Designer.cs
0 → 100644
View file @
a499a399
/*
* 由SharpDevelop创建。
* 用户: Acer
* 日期: 5月18 星期日
* 时间: 20:22
*
*/
namespace
DataEditorX
{
partial
class
DataEditForm
{
/// <summary>
/// Designer variable used to keep track of non-visual components.
/// </summary>
private
System
.
ComponentModel
.
IContainer
components
=
null
;
/// <summary>
/// Disposes resources used by the form.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected
override
void
Dispose
(
bool
disposing
)
{
if
(
disposing
)
{
if
(
components
!=
null
)
{
components
.
Dispose
();
}
}
base
.
Dispose
(
disposing
);
}
/// <summary>
/// This method is required for Windows Forms designer support.
/// Do not change the method contents inside the source code editor. The Forms designer might
/// not be able to load this method if it was changed manually.
/// </summary>
private
void
InitializeComponent
()
{
this
.
menuStrip1
=
new
System
.
Windows
.
Forms
.
MenuStrip
();
this
.
文件
FToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
打开
OToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
保存
SToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
另存为
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
复制到
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
toolStripSeparator1
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
导出
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
导入
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
toolStripSeparator3
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
读取
ydkToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
读取图片
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
toolStripSeparator2
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
退出
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
编辑
EToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
撤销
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
还原
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
toolStripSeparator4
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
添加
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
修改
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
删除
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
toolStripSeparator5
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
搜索
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
重置
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
toolStripSeparator6
=
new
System
.
Windows
.
Forms
.
ToolStripSeparator
();
this
.
打开脚本
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
启动游戏
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
帮助
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
关于
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
检查更新
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
lv_cardlist
=
new
System
.
Windows
.
Forms
.
ListView
();
this
.
ch_cardcode
=
new
System
.
Windows
.
Forms
.
ColumnHeader
();
this
.
ch_cardname
=
new
System
.
Windows
.
Forms
.
ColumnHeader
();
this
.
cb_cardattribute
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
tb_cardname
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
cb_cardrule
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
cb_cardlevel
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
cb_cardrace
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
cb_setname2
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
cb_setname1
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
cb_setname4
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
cb_setname3
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
tb_cardtext
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
lb_scripttext
=
new
System
.
Windows
.
Forms
.
ListBox
();
this
.
tb_edittext
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
lb_pleft_right
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
tb_pleft
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
tb_pright
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
lb_atkdef
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label4
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
tb_page
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
tb_pagenum
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
btn_PageUp
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btn_PageDown
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btn_add
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
label5
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
tb_atk
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
tb_def
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
lb_cardcode
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
tb_cardcode
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
lb_cardalias
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
tb_cardalias
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
btn_mod
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btn_del
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btn_lua
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btn_reset
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btn_serach
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
pl_cardtype
=
new
DataEditorX
.
Core
.
CheckPanel
();
this
.
pl_category
=
new
DataEditorX
.
Core
.
CheckPanel
();
this
.
label1
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label3
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label6
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label2
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
label7
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
button1
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
button2
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
textBox1
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
label8
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
textBox2
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
label9
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
显示卡片图像
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
menuStrip1
.
SuspendLayout
();
this
.
SuspendLayout
();
//
// menuStrip1
//
this
.
menuStrip1
.
Items
.
AddRange
(
new
System
.
Windows
.
Forms
.
ToolStripItem
[]
{
this
.
文件
FToolStripMenuItem
,
this
.
编辑
EToolStripMenuItem
,
this
.
帮助
ToolStripMenuItem
});
this
.
menuStrip1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
menuStrip1
.
Name
=
"menuStrip1"
;
this
.
menuStrip1
.
Size
=
new
System
.
Drawing
.
Size
(
814
,
25
);
this
.
menuStrip1
.
TabIndex
=
0
;
this
.
menuStrip1
.
Text
=
"menuStrip1"
;
//
// 文件FToolStripMenuItem
//
this
.
文件
FToolStripMenuItem
.
DropDownItems
.
AddRange
(
new
System
.
Windows
.
Forms
.
ToolStripItem
[]
{
this
.
打开
OToolStripMenuItem
,
this
.
保存
SToolStripMenuItem
,
this
.
另存为
ToolStripMenuItem
,
this
.
复制到
ToolStripMenuItem
,
this
.
toolStripSeparator1
,
this
.
导出
ToolStripMenuItem
,
this
.
导入
ToolStripMenuItem
,
this
.
toolStripSeparator3
,
this
.
读取
ydkToolStripMenuItem
,
this
.
读取图片
ToolStripMenuItem
,
this
.
toolStripSeparator2
,
this
.
退出
ToolStripMenuItem
});
this
.
文件
FToolStripMenuItem
.
Name
=
"文件FToolStripMenuItem"
;
this
.
文件
FToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
58
,
21
);
this
.
文件
FToolStripMenuItem
.
Text
=
"文件(&F)"
;
//
// 打开OToolStripMenuItem
//
this
.
打开
OToolStripMenuItem
.
Name
=
"打开OToolStripMenuItem"
;
this
.
打开
OToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
124
,
22
);
this
.
打开
OToolStripMenuItem
.
Text
=
"打开(&O)"
;
//
// 保存SToolStripMenuItem
//
this
.
保存
SToolStripMenuItem
.
Name
=
"保存SToolStripMenuItem"
;
this
.
保存
SToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
124
,
22
);
this
.
保存
SToolStripMenuItem
.
Text
=
"保存(&S)"
;
//
// 另存为ToolStripMenuItem
//
this
.
另存为
ToolStripMenuItem
.
Name
=
"另存为ToolStripMenuItem"
;
this
.
另存为
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
124
,
22
);
this
.
另存为
ToolStripMenuItem
.
Text
=
"另存为"
;
//
// 复制到ToolStripMenuItem
//
this
.
复制到
ToolStripMenuItem
.
Name
=
"复制到ToolStripMenuItem"
;
this
.
复制到
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
124
,
22
);
this
.
复制到
ToolStripMenuItem
.
Text
=
"复制到"
;
//
// toolStripSeparator1
//
this
.
toolStripSeparator1
.
Name
=
"toolStripSeparator1"
;
this
.
toolStripSeparator1
.
Size
=
new
System
.
Drawing
.
Size
(
121
,
6
);
//
// 导出ToolStripMenuItem
//
this
.
导出
ToolStripMenuItem
.
Name
=
"导出ToolStripMenuItem"
;
this
.
导出
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
124
,
22
);
this
.
导出
ToolStripMenuItem
.
Text
=
"导出"
;
//
// 导入ToolStripMenuItem
//
this
.
导入
ToolStripMenuItem
.
Name
=
"导入ToolStripMenuItem"
;
this
.
导入
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
124
,
22
);
this
.
导入
ToolStripMenuItem
.
Text
=
"导入"
;
//
// toolStripSeparator3
//
this
.
toolStripSeparator3
.
Name
=
"toolStripSeparator3"
;
this
.
toolStripSeparator3
.
Size
=
new
System
.
Drawing
.
Size
(
121
,
6
);
//
// 读取ydkToolStripMenuItem
//
this
.
读取
ydkToolStripMenuItem
.
Name
=
"读取ydkToolStripMenuItem"
;
this
.
读取
ydkToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
124
,
22
);
this
.
读取
ydkToolStripMenuItem
.
Text
=
"读取ydk"
;
//
// 读取图片ToolStripMenuItem
//
this
.
读取图片
ToolStripMenuItem
.
Name
=
"读取图片ToolStripMenuItem"
;
this
.
读取图片
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
124
,
22
);
this
.
读取图片
ToolStripMenuItem
.
Text
=
"读取图片"
;
//
// toolStripSeparator2
//
this
.
toolStripSeparator2
.
Name
=
"toolStripSeparator2"
;
this
.
toolStripSeparator2
.
Size
=
new
System
.
Drawing
.
Size
(
121
,
6
);
//
// 退出ToolStripMenuItem
//
this
.
退出
ToolStripMenuItem
.
Name
=
"退出ToolStripMenuItem"
;
this
.
退出
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
124
,
22
);
this
.
退出
ToolStripMenuItem
.
Text
=
"退出"
;
//
// 编辑EToolStripMenuItem
//
this
.
编辑
EToolStripMenuItem
.
DropDownItems
.
AddRange
(
new
System
.
Windows
.
Forms
.
ToolStripItem
[]
{
this
.
撤销
ToolStripMenuItem
,
this
.
还原
ToolStripMenuItem
,
this
.
toolStripSeparator4
,
this
.
添加
ToolStripMenuItem
,
this
.
修改
ToolStripMenuItem
,
this
.
删除
ToolStripMenuItem
,
this
.
toolStripSeparator5
,
this
.
搜索
ToolStripMenuItem
,
this
.
重置
ToolStripMenuItem
,
this
.
toolStripSeparator6
,
this
.
打开脚本
ToolStripMenuItem
,
this
.
启动游戏
ToolStripMenuItem
,
this
.
显示卡片图像
ToolStripMenuItem
});
this
.
编辑
EToolStripMenuItem
.
Name
=
"编辑EToolStripMenuItem"
;
this
.
编辑
EToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
59
,
21
);
this
.
编辑
EToolStripMenuItem
.
Text
=
"编辑(&E)"
;
//
// 撤销ToolStripMenuItem
//
this
.
撤销
ToolStripMenuItem
.
Name
=
"撤销ToolStripMenuItem"
;
this
.
撤销
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
124
,
22
);
this
.
撤销
ToolStripMenuItem
.
Text
=
"撤销"
;
//
// 还原ToolStripMenuItem
//
this
.
还原
ToolStripMenuItem
.
Name
=
"还原ToolStripMenuItem"
;
this
.
还原
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
124
,
22
);
this
.
还原
ToolStripMenuItem
.
Text
=
"还原"
;
//
// toolStripSeparator4
//
this
.
toolStripSeparator4
.
Name
=
"toolStripSeparator4"
;
this
.
toolStripSeparator4
.
Size
=
new
System
.
Drawing
.
Size
(
121
,
6
);
//
// 添加ToolStripMenuItem
//
this
.
添加
ToolStripMenuItem
.
Name
=
"添加ToolStripMenuItem"
;
this
.
添加
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
124
,
22
);
this
.
添加
ToolStripMenuItem
.
Text
=
"添加"
;
//
// 修改ToolStripMenuItem
//
this
.
修改
ToolStripMenuItem
.
Name
=
"修改ToolStripMenuItem"
;
this
.
修改
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
124
,
22
);
this
.
修改
ToolStripMenuItem
.
Text
=
"修改"
;
//
// 删除ToolStripMenuItem
//
this
.
删除
ToolStripMenuItem
.
Name
=
"删除ToolStripMenuItem"
;
this
.
删除
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
124
,
22
);
this
.
删除
ToolStripMenuItem
.
Text
=
"删除"
;
//
// toolStripSeparator5
//
this
.
toolStripSeparator5
.
Name
=
"toolStripSeparator5"
;
this
.
toolStripSeparator5
.
Size
=
new
System
.
Drawing
.
Size
(
121
,
6
);
//
// 搜索ToolStripMenuItem
//
this
.
搜索
ToolStripMenuItem
.
Name
=
"搜索ToolStripMenuItem"
;
this
.
搜索
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
124
,
22
);
this
.
搜索
ToolStripMenuItem
.
Text
=
"搜索"
;
//
// 重置ToolStripMenuItem
//
this
.
重置
ToolStripMenuItem
.
Name
=
"重置ToolStripMenuItem"
;
this
.
重置
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
124
,
22
);
this
.
重置
ToolStripMenuItem
.
Text
=
"重置"
;
//
// toolStripSeparator6
//
this
.
toolStripSeparator6
.
Name
=
"toolStripSeparator6"
;
this
.
toolStripSeparator6
.
Size
=
new
System
.
Drawing
.
Size
(
121
,
6
);
//
// 打开脚本ToolStripMenuItem
//
this
.
打开脚本
ToolStripMenuItem
.
Name
=
"打开脚本ToolStripMenuItem"
;
this
.
打开脚本
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
124
,
22
);
this
.
打开脚本
ToolStripMenuItem
.
Text
=
"打开脚本"
;
//
// 启动游戏ToolStripMenuItem
//
this
.
启动游戏
ToolStripMenuItem
.
Name
=
"启动游戏ToolStripMenuItem"
;
this
.
启动游戏
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
124
,
22
);
this
.
启动游戏
ToolStripMenuItem
.
Text
=
"启动游戏"
;
//
// 帮助ToolStripMenuItem
//
this
.
帮助
ToolStripMenuItem
.
DropDownItems
.
AddRange
(
new
System
.
Windows
.
Forms
.
ToolStripItem
[]
{
this
.
关于
ToolStripMenuItem
,
this
.
检查更新
ToolStripMenuItem
});
this
.
帮助
ToolStripMenuItem
.
Name
=
"帮助ToolStripMenuItem"
;
this
.
帮助
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
61
,
21
);
this
.
帮助
ToolStripMenuItem
.
Text
=
"帮助(&H)"
;
//
// 关于ToolStripMenuItem
//
this
.
关于
ToolStripMenuItem
.
Name
=
"关于ToolStripMenuItem"
;
this
.
关于
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
124
,
22
);
this
.
关于
ToolStripMenuItem
.
Text
=
"关于"
;
//
// 检查更新ToolStripMenuItem
//
this
.
检查更新
ToolStripMenuItem
.
Name
=
"检查更新ToolStripMenuItem"
;
this
.
检查更新
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
124
,
22
);
this
.
检查更新
ToolStripMenuItem
.
Text
=
"检查更新"
;
//
// lv_cardlist
//
this
.
lv_cardlist
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
lv_cardlist
.
Columns
.
AddRange
(
new
System
.
Windows
.
Forms
.
ColumnHeader
[]
{
this
.
ch_cardcode
,
this
.
ch_cardname
});
this
.
lv_cardlist
.
FullRowSelect
=
true
;
this
.
lv_cardlist
.
GridLines
=
true
;
this
.
lv_cardlist
.
HideSelection
=
false
;
this
.
lv_cardlist
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
27
);
this
.
lv_cardlist
.
Name
=
"lv_cardlist"
;
this
.
lv_cardlist
.
Size
=
new
System
.
Drawing
.
Size
(
218
,
495
);
this
.
lv_cardlist
.
TabIndex
=
1
;
this
.
lv_cardlist
.
UseCompatibleStateImageBehavior
=
false
;
this
.
lv_cardlist
.
View
=
System
.
Windows
.
Forms
.
View
.
Details
;
//
// ch_cardcode
//
this
.
ch_cardcode
.
Text
=
"卡片密码"
;
this
.
ch_cardcode
.
Width
=
70
;
//
// ch_cardname
//
this
.
ch_cardname
.
Text
=
"卡片名称"
;
this
.
ch_cardname
.
Width
=
140
;
//
// cb_cardattribute
//
this
.
cb_cardattribute
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cb_cardattribute
.
FormattingEnabled
=
true
;
this
.
cb_cardattribute
.
Location
=
new
System
.
Drawing
.
Point
(
375
,
49
);
this
.
cb_cardattribute
.
Name
=
"cb_cardattribute"
;
this
.
cb_cardattribute
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
20
);
this
.
cb_cardattribute
.
TabIndex
=
2
;
//
// tb_cardname
//
this
.
tb_cardname
.
Location
=
new
System
.
Drawing
.
Point
(
530
,
51
);
this
.
tb_cardname
.
Name
=
"tb_cardname"
;
this
.
tb_cardname
.
Size
=
new
System
.
Drawing
.
Size
(
281
,
21
);
this
.
tb_cardname
.
TabIndex
=
4
;
//
// cb_cardrule
//
this
.
cb_cardrule
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cb_cardrule
.
FormattingEnabled
=
true
;
this
.
cb_cardrule
.
Location
=
new
System
.
Drawing
.
Point
(
223
,
50
);
this
.
cb_cardrule
.
Name
=
"cb_cardrule"
;
this
.
cb_cardrule
.
Size
=
new
System
.
Drawing
.
Size
(
147
,
20
);
this
.
cb_cardrule
.
TabIndex
=
2
;
//
// cb_cardlevel
//
this
.
cb_cardlevel
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cb_cardlevel
.
FormattingEnabled
=
true
;
this
.
cb_cardlevel
.
Location
=
new
System
.
Drawing
.
Point
(
375
,
75
);
this
.
cb_cardlevel
.
Name
=
"cb_cardlevel"
;
this
.
cb_cardlevel
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
20
);
this
.
cb_cardlevel
.
TabIndex
=
2
;
//
// cb_cardrace
//
this
.
cb_cardrace
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cb_cardrace
.
FormattingEnabled
=
true
;
this
.
cb_cardrace
.
Location
=
new
System
.
Drawing
.
Point
(
223
,
75
);
this
.
cb_cardrace
.
Name
=
"cb_cardrace"
;
this
.
cb_cardrace
.
Size
=
new
System
.
Drawing
.
Size
(
146
,
20
);
this
.
cb_cardrace
.
TabIndex
=
2
;
//
// cb_setname2
//
this
.
cb_setname2
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cb_setname2
.
FormattingEnabled
=
true
;
this
.
cb_setname2
.
Location
=
new
System
.
Drawing
.
Point
(
375
,
101
);
this
.
cb_setname2
.
Name
=
"cb_setname2"
;
this
.
cb_setname2
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
20
);
this
.
cb_setname2
.
TabIndex
=
2
;
//
// cb_setname1
//
this
.
cb_setname1
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cb_setname1
.
FormattingEnabled
=
true
;
this
.
cb_setname1
.
Location
=
new
System
.
Drawing
.
Point
(
223
,
101
);
this
.
cb_setname1
.
Name
=
"cb_setname1"
;
this
.
cb_setname1
.
Size
=
new
System
.
Drawing
.
Size
(
146
,
20
);
this
.
cb_setname1
.
TabIndex
=
2
;
//
// cb_setname4
//
this
.
cb_setname4
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cb_setname4
.
FormattingEnabled
=
true
;
this
.
cb_setname4
.
Location
=
new
System
.
Drawing
.
Point
(
375
,
127
);
this
.
cb_setname4
.
Name
=
"cb_setname4"
;
this
.
cb_setname4
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
20
);
this
.
cb_setname4
.
TabIndex
=
2
;
//
// cb_setname3
//
this
.
cb_setname3
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cb_setname3
.
FormattingEnabled
=
true
;
this
.
cb_setname3
.
Location
=
new
System
.
Drawing
.
Point
(
223
,
127
);
this
.
cb_setname3
.
Name
=
"cb_setname3"
;
this
.
cb_setname3
.
Size
=
new
System
.
Drawing
.
Size
(
146
,
20
);
this
.
cb_setname3
.
TabIndex
=
2
;
//
// tb_cardtext
//
this
.
tb_cardtext
.
AcceptsReturn
=
true
;
this
.
tb_cardtext
.
AcceptsTab
=
true
;
this
.
tb_cardtext
.
Location
=
new
System
.
Drawing
.
Point
(
530
,
96
);
this
.
tb_cardtext
.
Multiline
=
true
;
this
.
tb_cardtext
.
Name
=
"tb_cardtext"
;
this
.
tb_cardtext
.
ScrollBars
=
System
.
Windows
.
Forms
.
ScrollBars
.
Vertical
;
this
.
tb_cardtext
.
Size
=
new
System
.
Drawing
.
Size
(
281
,
236
);
this
.
tb_cardtext
.
TabIndex
=
4
;
//
// lb_scripttext
//
this
.
lb_scripttext
.
FormattingEnabled
=
true
;
this
.
lb_scripttext
.
IntegralHeight
=
false
;
this
.
lb_scripttext
.
ItemHeight
=
12
;
this
.
lb_scripttext
.
Location
=
new
System
.
Drawing
.
Point
(
532
,
357
);
this
.
lb_scripttext
.
Name
=
"lb_scripttext"
;
this
.
lb_scripttext
.
ScrollAlwaysVisible
=
true
;
this
.
lb_scripttext
.
Size
=
new
System
.
Drawing
.
Size
(
281
,
120
);
this
.
lb_scripttext
.
TabIndex
=
6
;
//
// tb_edittext
//
this
.
tb_edittext
.
HideSelection
=
false
;
this
.
tb_edittext
.
Location
=
new
System
.
Drawing
.
Point
(
533
,
478
);
this
.
tb_edittext
.
MaxLength
=
2000
;
this
.
tb_edittext
.
Multiline
=
true
;
this
.
tb_edittext
.
Name
=
"tb_edittext"
;
this
.
tb_edittext
.
ScrollBars
=
System
.
Windows
.
Forms
.
ScrollBars
.
Vertical
;
this
.
tb_edittext
.
Size
=
new
System
.
Drawing
.
Size
(
279
,
41
);
this
.
tb_edittext
.
TabIndex
=
4
;
//
// lb_pleft_right
//
this
.
lb_pleft_right
.
AutoSize
=
true
;
this
.
lb_pleft_right
.
Location
=
new
System
.
Drawing
.
Point
(
226
,
156
);
this
.
lb_pleft_right
.
Name
=
"lb_pleft_right"
;
this
.
lb_pleft_right
.
Size
=
new
System
.
Drawing
.
Size
(
35
,
12
);
this
.
lb_pleft_right
.
TabIndex
=
7
;
this
.
lb_pleft_right
.
Text
=
"摇摆:"
;
//
// tb_pleft
//
this
.
tb_pleft
.
Location
=
new
System
.
Drawing
.
Point
(
274
,
151
);
this
.
tb_pleft
.
MaxLength
=
12
;
this
.
tb_pleft
.
Name
=
"tb_pleft"
;
this
.
tb_pleft
.
Size
=
new
System
.
Drawing
.
Size
(
38
,
21
);
this
.
tb_pleft
.
TabIndex
=
8
;
this
.
tb_pleft
.
Text
=
"0"
;
this
.
tb_pleft
.
TextAlign
=
System
.
Windows
.
Forms
.
HorizontalAlignment
.
Center
;
//
// tb_pright
//
this
.
tb_pright
.
Location
=
new
System
.
Drawing
.
Point
(
332
,
151
);
this
.
tb_pright
.
MaxLength
=
12
;
this
.
tb_pright
.
Name
=
"tb_pright"
;
this
.
tb_pright
.
Size
=
new
System
.
Drawing
.
Size
(
38
,
21
);
this
.
tb_pright
.
TabIndex
=
8
;
this
.
tb_pright
.
Text
=
"0"
;
this
.
tb_pright
.
TextAlign
=
System
.
Windows
.
Forms
.
HorizontalAlignment
.
Center
;
//
// lb_atkdef
//
this
.
lb_atkdef
.
AutoSize
=
true
;
this
.
lb_atkdef
.
Location
=
new
System
.
Drawing
.
Point
(
373
,
157
);
this
.
lb_atkdef
.
Name
=
"lb_atkdef"
;
this
.
lb_atkdef
.
Size
=
new
System
.
Drawing
.
Size
(
47
,
12
);
this
.
lb_atkdef
.
TabIndex
=
7
;
this
.
lb_atkdef
.
Text
=
"ATK/DEF"
;
//
// label4
//
this
.
label4
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
label4
.
AutoSize
=
true
;
this
.
label4
.
Location
=
new
System
.
Drawing
.
Point
(
105
,
533
);
this
.
label4
.
Name
=
"label4"
;
this
.
label4
.
Size
=
new
System
.
Drawing
.
Size
(
11
,
12
);
this
.
label4
.
TabIndex
=
7
;
this
.
label4
.
Text
=
"/"
;
//
// tb_page
//
this
.
tb_page
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
tb_page
.
Location
=
new
System
.
Drawing
.
Point
(
67
,
528
);
this
.
tb_page
.
MaxLength
=
12
;
this
.
tb_page
.
Name
=
"tb_page"
;
this
.
tb_page
.
Size
=
new
System
.
Drawing
.
Size
(
34
,
21
);
this
.
tb_page
.
TabIndex
=
8
;
this
.
tb_page
.
Text
=
"0"
;
this
.
tb_page
.
TextAlign
=
System
.
Windows
.
Forms
.
HorizontalAlignment
.
Center
;
//
// tb_pagenum
//
this
.
tb_pagenum
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
tb_pagenum
.
Location
=
new
System
.
Drawing
.
Point
(
118
,
528
);
this
.
tb_pagenum
.
MaxLength
=
12
;
this
.
tb_pagenum
.
Name
=
"tb_pagenum"
;
this
.
tb_pagenum
.
ReadOnly
=
true
;
this
.
tb_pagenum
.
Size
=
new
System
.
Drawing
.
Size
(
34
,
21
);
this
.
tb_pagenum
.
TabIndex
=
8
;
this
.
tb_pagenum
.
Text
=
"0"
;
this
.
tb_pagenum
.
TextAlign
=
System
.
Windows
.
Forms
.
HorizontalAlignment
.
Center
;
//
// btn_PageUp
//
this
.
btn_PageUp
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
btn_PageUp
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
525
);
this
.
btn_PageUp
.
Name
=
"btn_PageUp"
;
this
.
btn_PageUp
.
Size
=
new
System
.
Drawing
.
Size
(
64
,
24
);
this
.
btn_PageUp
.
TabIndex
=
5
;
this
.
btn_PageUp
.
Text
=
"< <"
;
this
.
btn_PageUp
.
UseVisualStyleBackColor
=
true
;
//
// btn_PageDown
//
this
.
btn_PageDown
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
this
.
btn_PageDown
.
Location
=
new
System
.
Drawing
.
Point
(
155
,
526
);
this
.
btn_PageDown
.
Name
=
"btn_PageDown"
;
this
.
btn_PageDown
.
Size
=
new
System
.
Drawing
.
Size
(
64
,
24
);
this
.
btn_PageDown
.
TabIndex
=
5
;
this
.
btn_PageDown
.
Text
=
"> >"
;
this
.
btn_PageDown
.
UseVisualStyleBackColor
=
true
;
//
// btn_add
//
this
.
btn_add
.
Location
=
new
System
.
Drawing
.
Point
(
532
,
524
);
this
.
btn_add
.
Name
=
"btn_add"
;
this
.
btn_add
.
Size
=
new
System
.
Drawing
.
Size
(
68
,
26
);
this
.
btn_add
.
TabIndex
=
5
;
this
.
btn_add
.
Text
=
"添加"
;
this
.
btn_add
.
UseVisualStyleBackColor
=
true
;
//
// label5
//
this
.
label5
.
AutoSize
=
true
;
this
.
label5
.
Location
=
new
System
.
Drawing
.
Point
(
463
,
156
);
this
.
label5
.
Name
=
"label5"
;
this
.
label5
.
Size
=
new
System
.
Drawing
.
Size
(
11
,
12
);
this
.
label5
.
TabIndex
=
7
;
this
.
label5
.
Text
=
"/"
;
//
// tb_atk
//
this
.
tb_atk
.
Location
=
new
System
.
Drawing
.
Point
(
421
,
152
);
this
.
tb_atk
.
MaxLength
=
12
;
this
.
tb_atk
.
Name
=
"tb_atk"
;
this
.
tb_atk
.
Size
=
new
System
.
Drawing
.
Size
(
38
,
21
);
this
.
tb_atk
.
TabIndex
=
8
;
this
.
tb_atk
.
Text
=
"0"
;
this
.
tb_atk
.
TextAlign
=
System
.
Windows
.
Forms
.
HorizontalAlignment
.
Right
;
//
// tb_def
//
this
.
tb_def
.
Location
=
new
System
.
Drawing
.
Point
(
477
,
152
);
this
.
tb_def
.
MaxLength
=
12
;
this
.
tb_def
.
Name
=
"tb_def"
;
this
.
tb_def
.
Size
=
new
System
.
Drawing
.
Size
(
38
,
21
);
this
.
tb_def
.
TabIndex
=
8
;
this
.
tb_def
.
Text
=
"0"
;
this
.
tb_def
.
TextAlign
=
System
.
Windows
.
Forms
.
HorizontalAlignment
.
Right
;
//
// lb_cardcode
//
this
.
lb_cardcode
.
AutoSize
=
true
;
this
.
lb_cardcode
.
Location
=
new
System
.
Drawing
.
Point
(
224
,
180
);
this
.
lb_cardcode
.
Name
=
"lb_cardcode"
;
this
.
lb_cardcode
.
Size
=
new
System
.
Drawing
.
Size
(
53
,
12
);
this
.
lb_cardcode
.
TabIndex
=
7
;
this
.
lb_cardcode
.
Text
=
"卡片密码"
;
//
// tb_cardcode
//
this
.
tb_cardcode
.
Location
=
new
System
.
Drawing
.
Point
(
296
,
176
);
this
.
tb_cardcode
.
MaxLength
=
12
;
this
.
tb_cardcode
.
Name
=
"tb_cardcode"
;
this
.
tb_cardcode
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
21
);
this
.
tb_cardcode
.
TabIndex
=
8
;
this
.
tb_cardcode
.
Text
=
"0"
;
this
.
tb_cardcode
.
TextAlign
=
System
.
Windows
.
Forms
.
HorizontalAlignment
.
Right
;
//
// lb_cardalias
//
this
.
lb_cardalias
.
AutoSize
=
true
;
this
.
lb_cardalias
.
Location
=
new
System
.
Drawing
.
Point
(
375
,
183
);
this
.
lb_cardalias
.
Name
=
"lb_cardalias"
;
this
.
lb_cardalias
.
Size
=
new
System
.
Drawing
.
Size
(
41
,
12
);
this
.
lb_cardalias
.
TabIndex
=
7
;
this
.
lb_cardalias
.
Text
=
"同名卡"
;
//
// tb_cardalias
//
this
.
tb_cardalias
.
Location
=
new
System
.
Drawing
.
Point
(
439
,
177
);
this
.
tb_cardalias
.
MaxLength
=
12
;
this
.
tb_cardalias
.
Name
=
"tb_cardalias"
;
this
.
tb_cardalias
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
21
);
this
.
tb_cardalias
.
TabIndex
=
8
;
this
.
tb_cardalias
.
Text
=
"0"
;
this
.
tb_cardalias
.
TextAlign
=
System
.
Windows
.
Forms
.
HorizontalAlignment
.
Right
;
//
// btn_mod
//
this
.
btn_mod
.
Location
=
new
System
.
Drawing
.
Point
(
603
,
524
);
this
.
btn_mod
.
Name
=
"btn_mod"
;
this
.
btn_mod
.
Size
=
new
System
.
Drawing
.
Size
(
68
,
26
);
this
.
btn_mod
.
TabIndex
=
5
;
this
.
btn_mod
.
Text
=
"修改"
;
this
.
btn_mod
.
UseVisualStyleBackColor
=
true
;
//
// btn_del
//
this
.
btn_del
.
ForeColor
=
System
.
Drawing
.
Color
.
DarkRed
;
this
.
btn_del
.
Location
=
new
System
.
Drawing
.
Point
(
743
,
524
);
this
.
btn_del
.
Name
=
"btn_del"
;
this
.
btn_del
.
Size
=
new
System
.
Drawing
.
Size
(
68
,
26
);
this
.
btn_del
.
TabIndex
=
5
;
this
.
btn_del
.
Text
=
"删除"
;
this
.
btn_del
.
UseVisualStyleBackColor
=
true
;
//
// btn_lua
//
this
.
btn_lua
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
0
)))),
((
int
)(((
byte
)(
64
)))),
((
int
)(((
byte
)(
0
)))));
this
.
btn_lua
.
Location
=
new
System
.
Drawing
.
Point
(
673
,
524
);
this
.
btn_lua
.
Name
=
"btn_lua"
;
this
.
btn_lua
.
Size
=
new
System
.
Drawing
.
Size
(
68
,
26
);
this
.
btn_lua
.
TabIndex
=
5
;
this
.
btn_lua
.
Text
=
"脚本"
;
this
.
btn_lua
.
UseVisualStyleBackColor
=
true
;
//
// btn_reset
//
this
.
btn_reset
.
Location
=
new
System
.
Drawing
.
Point
(
307
,
523
);
this
.
btn_reset
.
Name
=
"btn_reset"
;
this
.
btn_reset
.
Size
=
new
System
.
Drawing
.
Size
(
78
,
27
);
this
.
btn_reset
.
TabIndex
=
5
;
this
.
btn_reset
.
Text
=
"重置"
;
this
.
btn_reset
.
UseVisualStyleBackColor
=
true
;
//
// btn_serach
//
this
.
btn_serach
.
Location
=
new
System
.
Drawing
.
Point
(
222
,
524
);
this
.
btn_serach
.
Name
=
"btn_serach"
;
this
.
btn_serach
.
Size
=
new
System
.
Drawing
.
Size
(
83
,
25
);
this
.
btn_serach
.
TabIndex
=
5
;
this
.
btn_serach
.
Text
=
"搜索"
;
this
.
btn_serach
.
UseVisualStyleBackColor
=
true
;
//
// pl_cardtype
//
this
.
pl_cardtype
.
Location
=
new
System
.
Drawing
.
Point
(
221
,
220
);
this
.
pl_cardtype
.
Name
=
"pl_cardtype"
;
this
.
pl_cardtype
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
2
);
this
.
pl_cardtype
.
Size
=
new
System
.
Drawing
.
Size
(
293
,
112
);
this
.
pl_cardtype
.
TabIndex
=
9
;
//
// pl_category
//
this
.
pl_category
.
Location
=
new
System
.
Drawing
.
Point
(
220
,
355
);
this
.
pl_category
.
Name
=
"pl_category"
;
this
.
pl_category
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
2
);
this
.
pl_category
.
Size
=
new
System
.
Drawing
.
Size
(
310
,
164
);
this
.
pl_category
.
TabIndex
=
10
;
//
// label1
//
this
.
label1
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
255
)))));
this
.
label1
.
Location
=
new
System
.
Drawing
.
Point
(
221
,
202
);
this
.
label1
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
3
,
3
,
3
,
0
);
this
.
label1
.
Name
=
"label1"
;
this
.
label1
.
Size
=
new
System
.
Drawing
.
Size
(
293
,
16
);
this
.
label1
.
TabIndex
=
11
;
this
.
label1
.
Text
=
"卡片种类"
;
this
.
label1
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
//
// label3
//
this
.
label3
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
255
)))));
this
.
label3
.
Location
=
new
System
.
Drawing
.
Point
(
220
,
336
);
this
.
label3
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
3
,
3
,
3
,
0
);
this
.
label3
.
Name
=
"label3"
;
this
.
label3
.
Size
=
new
System
.
Drawing
.
Size
(
308
,
16
);
this
.
label3
.
TabIndex
=
11
;
this
.
label3
.
Text
=
"效果种类"
;
this
.
label3
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
//
// label6
//
this
.
label6
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
255
)))));
this
.
label6
.
Location
=
new
System
.
Drawing
.
Point
(
532
,
337
);
this
.
label6
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
3
,
3
,
3
,
0
);
this
.
label6
.
Name
=
"label6"
;
this
.
label6
.
Size
=
new
System
.
Drawing
.
Size
(
278
,
16
);
this
.
label6
.
TabIndex
=
11
;
this
.
label6
.
Text
=
"脚本提示文本"
;
this
.
label6
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
//
// label2
//
this
.
label2
.
AutoSize
=
true
;
this
.
label2
.
Location
=
new
System
.
Drawing
.
Point
(
317
,
155
);
this
.
label2
.
Name
=
"label2"
;
this
.
label2
.
Size
=
new
System
.
Drawing
.
Size
(
11
,
12
);
this
.
label2
.
TabIndex
=
7
;
this
.
label2
.
Text
=
"/"
;
//
// label7
//
this
.
label7
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
255
)))));
this
.
label7
.
Location
=
new
System
.
Drawing
.
Point
(
220
,
29
);
this
.
label7
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
3
,
3
,
3
,
0
);
this
.
label7
.
Name
=
"label7"
;
this
.
label7
.
Size
=
new
System
.
Drawing
.
Size
(
293
,
16
);
this
.
label7
.
TabIndex
=
11
;
this
.
label7
.
Text
=
"卡片信息"
;
this
.
label7
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
//
// button1
//
this
.
button1
.
Location
=
new
System
.
Drawing
.
Point
(
390
,
522
);
this
.
button1
.
Name
=
"button1"
;
this
.
button1
.
Size
=
new
System
.
Drawing
.
Size
(
68
,
26
);
this
.
button1
.
TabIndex
=
5
;
this
.
button1
.
Text
=
"还原"
;
this
.
button1
.
UseVisualStyleBackColor
=
true
;
//
// button2
//
this
.
button2
.
Location
=
new
System
.
Drawing
.
Point
(
460
,
522
);
this
.
button2
.
Name
=
"button2"
;
this
.
button2
.
Size
=
new
System
.
Drawing
.
Size
(
68
,
26
);
this
.
button2
.
TabIndex
=
5
;
this
.
button2
.
Text
=
"撤销"
;
this
.
button2
.
UseVisualStyleBackColor
=
true
;
//
// textBox1
//
this
.
textBox1
.
Location
=
new
System
.
Drawing
.
Point
(
530
,
-
168
);
this
.
textBox1
.
Name
=
"textBox1"
;
this
.
textBox1
.
Size
=
new
System
.
Drawing
.
Size
(
281
,
21
);
this
.
textBox1
.
TabIndex
=
4
;
//
// label8
//
this
.
label8
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
255
)))));
this
.
label8
.
Location
=
new
System
.
Drawing
.
Point
(
532
,
76
);
this
.
label8
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
3
,
3
,
3
,
0
);
this
.
label8
.
Name
=
"label8"
;
this
.
label8
.
Size
=
new
System
.
Drawing
.
Size
(
278
,
16
);
this
.
label8
.
TabIndex
=
11
;
this
.
label8
.
Text
=
"卡片描述文本"
;
this
.
label8
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
//
// textBox2
//
this
.
textBox2
.
Location
=
new
System
.
Drawing
.
Point
(
534
,
-
235
);
this
.
textBox2
.
Name
=
"textBox2"
;
this
.
textBox2
.
Size
=
new
System
.
Drawing
.
Size
(
281
,
21
);
this
.
textBox2
.
TabIndex
=
4
;
//
// label9
//
this
.
label9
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
255
)))));
this
.
label9
.
Location
=
new
System
.
Drawing
.
Point
(
533
,
29
);
this
.
label9
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
3
,
3
,
3
,
0
);
this
.
label9
.
Name
=
"label9"
;
this
.
label9
.
Size
=
new
System
.
Drawing
.
Size
(
278
,
16
);
this
.
label9
.
TabIndex
=
11
;
this
.
label9
.
Text
=
"卡片名称"
;
this
.
label9
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleLeft
;
//
// 显示卡片图像ToolStripMenuItem
//
this
.
显示卡片图像
ToolStripMenuItem
.
CheckOnClick
=
true
;
this
.
显示卡片图像
ToolStripMenuItem
.
Name
=
"显示卡片图像ToolStripMenuItem"
;
this
.
显示卡片图像
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
152
,
22
);
this
.
显示卡片图像
ToolStripMenuItem
.
Text
=
"显示卡片图像"
;
//
// DataEditForm
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
6F
,
12F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
814
,
553
);
this
.
Controls
.
Add
(
this
.
label3
);
this
.
Controls
.
Add
(
this
.
label9
);
this
.
Controls
.
Add
(
this
.
label8
);
this
.
Controls
.
Add
(
this
.
label6
);
this
.
Controls
.
Add
(
this
.
label7
);
this
.
Controls
.
Add
(
this
.
label1
);
this
.
Controls
.
Add
(
this
.
tb_edittext
);
this
.
Controls
.
Add
(
this
.
pl_cardtype
);
this
.
Controls
.
Add
(
this
.
tb_pagenum
);
this
.
Controls
.
Add
(
this
.
tb_def
);
this
.
Controls
.
Add
(
this
.
tb_pright
);
this
.
Controls
.
Add
(
this
.
tb_page
);
this
.
Controls
.
Add
(
this
.
tb_cardalias
);
this
.
Controls
.
Add
(
this
.
tb_cardcode
);
this
.
Controls
.
Add
(
this
.
tb_atk
);
this
.
Controls
.
Add
(
this
.
label4
);
this
.
Controls
.
Add
(
this
.
lb_cardalias
);
this
.
Controls
.
Add
(
this
.
tb_pleft
);
this
.
Controls
.
Add
(
this
.
lb_cardcode
);
this
.
Controls
.
Add
(
this
.
label5
);
this
.
Controls
.
Add
(
this
.
lb_atkdef
);
this
.
Controls
.
Add
(
this
.
label2
);
this
.
Controls
.
Add
(
this
.
lb_pleft_right
);
this
.
Controls
.
Add
(
this
.
lb_scripttext
);
this
.
Controls
.
Add
(
this
.
btn_reset
);
this
.
Controls
.
Add
(
this
.
btn_lua
);
this
.
Controls
.
Add
(
this
.
btn_serach
);
this
.
Controls
.
Add
(
this
.
btn_del
);
this
.
Controls
.
Add
(
this
.
button2
);
this
.
Controls
.
Add
(
this
.
btn_mod
);
this
.
Controls
.
Add
(
this
.
button1
);
this
.
Controls
.
Add
(
this
.
btn_add
);
this
.
Controls
.
Add
(
this
.
btn_PageDown
);
this
.
Controls
.
Add
(
this
.
textBox2
);
this
.
Controls
.
Add
(
this
.
btn_PageUp
);
this
.
Controls
.
Add
(
this
.
textBox1
);
this
.
Controls
.
Add
(
this
.
tb_cardtext
);
this
.
Controls
.
Add
(
this
.
tb_cardname
);
this
.
Controls
.
Add
(
this
.
cb_setname3
);
this
.
Controls
.
Add
(
this
.
cb_setname1
);
this
.
Controls
.
Add
(
this
.
cb_cardrace
);
this
.
Controls
.
Add
(
this
.
cb_cardrule
);
this
.
Controls
.
Add
(
this
.
cb_setname4
);
this
.
Controls
.
Add
(
this
.
cb_setname2
);
this
.
Controls
.
Add
(
this
.
cb_cardlevel
);
this
.
Controls
.
Add
(
this
.
cb_cardattribute
);
this
.
Controls
.
Add
(
this
.
lv_cardlist
);
this
.
Controls
.
Add
(
this
.
menuStrip1
);
this
.
Controls
.
Add
(
this
.
pl_category
);
this
.
MainMenuStrip
=
this
.
menuStrip1
;
this
.
Name
=
"DataEditForm"
;
this
.
StartPosition
=
System
.
Windows
.
Forms
.
FormStartPosition
.
CenterScreen
;
this
.
Text
=
"DataEditor"
;
this
.
Load
+=
new
System
.
EventHandler
(
this
.
DataEditFormLoad
);
this
.
menuStrip1
.
ResumeLayout
(
false
);
this
.
menuStrip1
.
PerformLayout
();
this
.
ResumeLayout
(
false
);
this
.
PerformLayout
();
}
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
显示卡片图像
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
Label
label9
;
private
System
.
Windows
.
Forms
.
TextBox
textBox2
;
private
System
.
Windows
.
Forms
.
Label
label8
;
private
System
.
Windows
.
Forms
.
TextBox
textBox1
;
private
System
.
Windows
.
Forms
.
Button
button2
;
private
System
.
Windows
.
Forms
.
Button
button1
;
private
System
.
Windows
.
Forms
.
Label
label7
;
private
System
.
Windows
.
Forms
.
Label
label6
;
private
System
.
Windows
.
Forms
.
Label
label3
;
private
System
.
Windows
.
Forms
.
Label
label1
;
private
DataEditorX
.
Core
.
CheckPanel
pl_category
;
private
DataEditorX
.
Core
.
CheckPanel
pl_cardtype
;
private
System
.
Windows
.
Forms
.
Button
btn_serach
;
private
System
.
Windows
.
Forms
.
Button
btn_reset
;
private
System
.
Windows
.
Forms
.
Button
btn_lua
;
private
System
.
Windows
.
Forms
.
Button
btn_del
;
private
System
.
Windows
.
Forms
.
Button
btn_mod
;
private
System
.
Windows
.
Forms
.
TextBox
tb_cardalias
;
private
System
.
Windows
.
Forms
.
Label
lb_cardalias
;
private
System
.
Windows
.
Forms
.
TextBox
tb_cardcode
;
private
System
.
Windows
.
Forms
.
Label
lb_cardcode
;
private
System
.
Windows
.
Forms
.
TextBox
tb_def
;
private
System
.
Windows
.
Forms
.
TextBox
tb_atk
;
private
System
.
Windows
.
Forms
.
Label
label5
;
private
System
.
Windows
.
Forms
.
Button
btn_add
;
private
System
.
Windows
.
Forms
.
Button
btn_PageDown
;
private
System
.
Windows
.
Forms
.
Button
btn_PageUp
;
private
System
.
Windows
.
Forms
.
TextBox
tb_pagenum
;
private
System
.
Windows
.
Forms
.
TextBox
tb_page
;
private
System
.
Windows
.
Forms
.
Label
label4
;
private
System
.
Windows
.
Forms
.
Label
lb_atkdef
;
private
System
.
Windows
.
Forms
.
Label
label2
;
private
System
.
Windows
.
Forms
.
TextBox
tb_pright
;
private
System
.
Windows
.
Forms
.
TextBox
tb_pleft
;
private
System
.
Windows
.
Forms
.
Label
lb_pleft_right
;
private
System
.
Windows
.
Forms
.
TextBox
tb_edittext
;
private
System
.
Windows
.
Forms
.
ListBox
lb_scripttext
;
private
System
.
Windows
.
Forms
.
TextBox
tb_cardtext
;
private
System
.
Windows
.
Forms
.
ComboBox
cb_setname3
;
private
System
.
Windows
.
Forms
.
ComboBox
cb_setname4
;
private
System
.
Windows
.
Forms
.
ComboBox
cb_setname1
;
private
System
.
Windows
.
Forms
.
ComboBox
cb_setname2
;
private
System
.
Windows
.
Forms
.
ComboBox
cb_cardrace
;
private
System
.
Windows
.
Forms
.
ComboBox
cb_cardlevel
;
private
System
.
Windows
.
Forms
.
ComboBox
cb_cardrule
;
private
System
.
Windows
.
Forms
.
TextBox
tb_cardname
;
private
System
.
Windows
.
Forms
.
ComboBox
cb_cardattribute
;
private
System
.
Windows
.
Forms
.
ColumnHeader
ch_cardname
;
private
System
.
Windows
.
Forms
.
ColumnHeader
ch_cardcode
;
private
System
.
Windows
.
Forms
.
ListView
lv_cardlist
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
检查更新
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
关于
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
帮助
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
启动游戏
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
打开脚本
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator6
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
重置
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
搜索
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator5
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
删除
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
修改
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
添加
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator4
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
还原
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
撤销
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
编辑
EToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
退出
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator2
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
读取图片
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
读取
ydkToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator3
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
导入
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
导出
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
toolStripSeparator1
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
复制到
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
另存为
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
保存
SToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
打开
OToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
文件
FToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
MenuStrip
menuStrip1
;
}
}
DataEditorX/DataEditForm.cs
0 → 100644
View file @
a499a399
/*
* 由SharpDevelop创建。
* 用户: Acer
* 日期: 5月18 星期日
* 时间: 20:22
*
*/
using
System
;
using
System.Drawing
;
using
System.Windows.Forms
;
using
System.IO
;
using
System.Collections.Generic
;
using
DataEditorX.Core
;
namespace
DataEditorX
{
/// <summary>
/// Description of DataEditForm.
/// </summary>
public
partial
class
DataEditForm
:
Form
{
string
strSetname
=
"卡片系列"
;
Dictionary
<
long
,
string
>
dicCardRules
=
null
;
Dictionary
<
long
,
string
>
dicCardAttributes
=
null
;
Dictionary
<
long
,
string
>
dicCardRaces
=
null
;
Dictionary
<
long
,
string
>
dicCardLevels
=
null
;
Dictionary
<
long
,
string
>
dicSetnames
=
null
;
Dictionary
<
long
,
string
>
dicCardTypes
=
null
;
Dictionary
<
long
,
string
>
dicCardcategorys
=
null
;
public
DataEditForm
(
string
cdbfile
)
{
InitializeComponent
();
}
public
DataEditForm
()
{
InitializeComponent
();
}
public
bool
InitForm
(
string
directory
)
{
dicCardRules
=
InitComboBox
(
cb_cardrule
,
Path
.
Combine
(
directory
,
"card-rule.txt"
));
dicCardAttributes
=
InitComboBox
(
cb_cardattribute
,
Path
.
Combine
(
directory
,
"card-attribute.txt"
));
dicCardRaces
=
InitComboBox
(
cb_cardrace
,
Path
.
Combine
(
directory
,
"card-race.txt"
));
dicCardLevels
=
InitComboBox
(
cb_cardlevel
,
Path
.
Combine
(
directory
,
"card-level.txt"
));
dicSetnames
=
DataManager
.
Read
(
Path
.
Combine
(
directory
,
"card-setname.txt"
));
string
[]
setnames
=
DataManager
.
GetValues
(
dicSetnames
);
cb_setname1
.
Items
.
Add
(
strSetname
+
"1"
);
cb_setname2
.
Items
.
Add
(
strSetname
+
"2"
);
cb_setname3
.
Items
.
Add
(
strSetname
+
"3"
);
cb_setname4
.
Items
.
Add
(
strSetname
+
"4"
);
cb_setname1
.
Items
.
AddRange
(
setnames
);
cb_setname2
.
Items
.
AddRange
(
setnames
);
cb_setname3
.
Items
.
AddRange
(
setnames
);
cb_setname4
.
Items
.
AddRange
(
setnames
);
dicCardTypes
=
DataManager
.
Read
(
Path
.
Combine
(
directory
,
"card-type.txt"
));
pl_cardtype
.
SetDic
(
dicCardTypes
);
pl_cardtype
.
Init
();
dicCardcategorys
=
DataManager
.
Read
(
Path
.
Combine
(
directory
,
"card-category.txt"
));
pl_category
.
SetDic
(
dicCardcategorys
);
pl_category
.
Init
();
SetCard
(
new
Card
(
0
,
""
));
return
true
;
}
Dictionary
<
long
,
string
>
InitComboBox
(
ComboBox
cb
,
string
file
)
{
Dictionary
<
long
,
string
>
tempdic
=
DataManager
.
Read
(
file
);
cb
.
Items
.
Clear
();
cb
.
Items
.
AddRange
(
DataManager
.
GetValues
(
tempdic
));
cb
.
SelectedIndex
=
0
;
return
tempdic
;
}
void
SetCard
(
Card
card
)
{
cb_setname1
.
SelectedIndex
=
0
;
cb_setname2
.
SelectedIndex
=
0
;
cb_setname3
.
SelectedIndex
=
0
;
cb_setname4
.
SelectedIndex
=
0
;
}
void
DataEditFormLoad
(
object
sender
,
EventArgs
e
)
{
}
}
}
DataEditorX/DataEditForm.resx
0 → 100644
View file @
a499a399
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema
id=
"root"
xmlns=
""
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
xmlns:msdata=
"urn:schemas-microsoft-com:xml-msdata"
>
<xsd:import
namespace=
"http://www.w3.org/XML/1998/namespace"
/>
<xsd:element
name=
"root"
msdata:IsDataSet=
"true"
>
<xsd:complexType>
<xsd:choice
maxOccurs=
"unbounded"
>
<xsd:element
name=
"metadata"
>
<xsd:complexType>
<xsd:sequence>
<xsd:element
name=
"value"
type=
"xsd:string"
minOccurs=
"0"
/>
</xsd:sequence>
<xsd:attribute
name=
"name"
use=
"required"
type=
"xsd:string"
/>
<xsd:attribute
name=
"type"
type=
"xsd:string"
/>
<xsd:attribute
name=
"mimetype"
type=
"xsd:string"
/>
<xsd:attribute
ref=
"xml:space"
/>
</xsd:complexType>
</xsd:element>
<xsd:element
name=
"assembly"
>
<xsd:complexType>
<xsd:attribute
name=
"alias"
type=
"xsd:string"
/>
<xsd:attribute
name=
"name"
type=
"xsd:string"
/>
</xsd:complexType>
</xsd:element>
<xsd:element
name=
"data"
>
<xsd:complexType>
<xsd:sequence>
<xsd:element
name=
"value"
type=
"xsd:string"
minOccurs=
"0"
msdata:Ordinal=
"1"
/>
<xsd:element
name=
"comment"
type=
"xsd:string"
minOccurs=
"0"
msdata:Ordinal=
"2"
/>
</xsd:sequence>
<xsd:attribute
name=
"name"
type=
"xsd:string"
use=
"required"
msdata:Ordinal=
"1"
/>
<xsd:attribute
name=
"type"
type=
"xsd:string"
msdata:Ordinal=
"3"
/>
<xsd:attribute
name=
"mimetype"
type=
"xsd:string"
msdata:Ordinal=
"4"
/>
<xsd:attribute
ref=
"xml:space"
/>
</xsd:complexType>
</xsd:element>
<xsd:element
name=
"resheader"
>
<xsd:complexType>
<xsd:sequence>
<xsd:element
name=
"value"
type=
"xsd:string"
minOccurs=
"0"
msdata:Ordinal=
"1"
/>
</xsd:sequence>
<xsd:attribute
name=
"name"
type=
"xsd:string"
use=
"required"
/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader
name=
"resmimetype"
>
<value>
text/microsoft-resx
</value>
</resheader>
<resheader
name=
"version"
>
<value>
2.0
</value>
</resheader>
<resheader
name=
"reader"
>
<value>
System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
</value>
</resheader>
<resheader
name=
"writer"
>
<value>
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
</value>
</resheader>
<metadata
name=
"menuStrip1.TrayLocation"
type=
"System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
>
<value>
17, 17
</value>
</metadata>
<metadata
name=
"$this.TrayHeight"
type=
"System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<value>
25
</value>
</metadata>
</root>
\ No newline at end of file
DataEditorX/DataEditorX.csproj
View file @
a499a399
...
@@ -42,6 +42,12 @@
...
@@ -42,6 +42,12 @@
<ItemGroup>
<ItemGroup>
<Compile
Include=
"Core\Card.cs"
/>
<Compile
Include=
"Core\Card.cs"
/>
<Compile
Include=
"Core\CDB.cs"
/>
<Compile
Include=
"Core\CDB.cs"
/>
<Compile
Include=
"Core\CheckPanel.cs"
/>
<Compile
Include=
"Core\DataManager.cs"
/>
<Compile
Include=
"DataEditForm.cs"
/>
<Compile
Include=
"DataEditForm.Designer.cs"
>
<DependentUpon>
DataEditForm.cs
</DependentUpon>
</Compile>
<Compile
Include=
"Interface\ICardView.cs"
/>
<Compile
Include=
"Interface\ICardView.cs"
/>
<Compile
Include=
"Interface\IEditor.cs"
/>
<Compile
Include=
"Interface\IEditor.cs"
/>
<Compile
Include=
"MainForm.cs"
/>
<Compile
Include=
"MainForm.cs"
/>
...
@@ -52,24 +58,43 @@
...
@@ -52,24 +58,43 @@
<Compile
Include=
"Properties\AssemblyInfo.cs"
/>
<Compile
Include=
"Properties\AssemblyInfo.cs"
/>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<EmbeddedResource
Include=
"DataEditForm.resx"
>
<DependentUpon>
DataEditForm.cs
</DependentUpon>
</EmbeddedResource>
<EmbeddedResource
Include=
"MainForm.resx"
>
<EmbeddedResource
Include=
"MainForm.resx"
>
<DependentUpon>
MainForm.cs
</DependentUpon>
<DependentUpon>
MainForm.cs
</DependentUpon>
</EmbeddedResource>
</EmbeddedResource>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<Folder
Include=
"Data\ygopro"
/>
<Folder
Include=
"Interface"
/>
<Folder
Include=
"Interface"
/>
<Folder
Include=
"Data"
/>
<Folder
Include=
"Data"
/>
<Folder
Include=
"Core"
/>
<Folder
Include=
"Core"
/>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<None
Include=
"Data\ygopro\card-attribute.txt"
/>
<None
Include=
"Data\card-attribute.txt"
>
<None
Include=
"Data\ygopro\card-level.txt"
/>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
<None
Include=
"Data\ygopro\card-race.txt"
/>
</None>
<None
Include=
"Data\ygopro\card-category.txt"
/>
<None
Include=
"Data\card-category.txt"
>
<None
Include=
"Data\ygopro\card-rule.txt"
/>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
<None
Include=
"Data\ygopro\card-type.txt"
/>
</None>
<None
Include=
"Data\ygopro\card-setname.txt"
/>
<None
Include=
"Data\card-level.txt"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</None>
<None
Include=
"Data\card-race.txt"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</None>
<None
Include=
"Data\card-rule.txt"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</None>
<None
Include=
"Data\card-setname.txt"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</None>
<None
Include=
"Data\card-type.txt"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</None>
<None
Include=
"Data\cover.jpg"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</None>
</ItemGroup>
</ItemGroup>
<Import
Project=
"$(MSBuildToolsPath)\Microsoft.CSharp.targets"
/>
<Import
Project=
"$(MSBuildToolsPath)\Microsoft.CSharp.targets"
/>
</Project>
</Project>
\ No newline at end of file
DataEditorX/MainForm.Designer.cs
View file @
a499a399
...
@@ -35,196 +35,66 @@ protected override void Dispose(bool disposing)
...
@@ -35,196 +35,66 @@ protected override void Dispose(bool disposing)
/// </summary>
/// </summary>
private
void
InitializeComponent
()
private
void
InitializeComponent
()
{
{
this
.
lv_cardlist
=
new
System
.
Windows
.
Forms
.
ListView
();
this
.
components
=
new
System
.
ComponentModel
.
Container
();
this
.
columnHeader1
=
new
System
.
Windows
.
Forms
.
ColumnHeader
();
this
.
label1
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
columnHeader2
=
new
System
.
Windows
.
Forms
.
ColumnHeader
();
this
.
lb_tips
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
ms_main
=
new
System
.
Windows
.
Forms
.
MenuStrip
();
this
.
groupBox1
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
文件
FToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
timer1
=
new
System
.
Windows
.
Forms
.
Timer
(
this
.
components
);
this
.
打开
OToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
groupBox1
.
SuspendLayout
();
this
.
新建
NToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
保存
SCToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
编辑
EToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
撤销
UToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
还原
YToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
添加
AToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
修改
MToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
删除
DToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
新建
NToolStripMenuItem1
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
帮助
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
关于
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
检查更新
ToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
ms_main
.
SuspendLayout
();
this
.
SuspendLayout
();
this
.
SuspendLayout
();
//
//
// l
v_cardlist
// l
abel1
//
//
this
.
lv_cardlist
.
Activation
=
System
.
Windows
.
Forms
.
ItemActivation
.
OneClick
;
this
.
label1
.
Font
=
new
System
.
Drawing
.
Font
(
"Consolas"
,
36F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
0
)));
this
.
lv_cardlist
.
Columns
.
AddRange
(
new
System
.
Windows
.
Forms
.
ColumnHeader
[]
{
this
.
label1
.
Location
=
new
System
.
Drawing
.
Point
(
6
,
18
);
this
.
columnHeader1
,
this
.
label1
.
Name
=
"label1"
;
this
.
columnHeader2
});
this
.
label1
.
Size
=
new
System
.
Drawing
.
Size
(
404
,
171
);
this
.
lv_cardlist
.
FullRowSelect
=
true
;
this
.
label1
.
TabIndex
=
0
;
this
.
lv_cardlist
.
GridLines
=
true
;
this
.
label1
.
Text
=
"DataEditorX"
;
this
.
lv_cardlist
.
HideSelection
=
false
;
this
.
label1
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleCenter
;
this
.
lv_cardlist
.
HotTracking
=
true
;
this
.
lv_cardlist
.
HoverSelection
=
true
;
this
.
lv_cardlist
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
25
);
this
.
lv_cardlist
.
Name
=
"lv_cardlist"
;
this
.
lv_cardlist
.
Size
=
new
System
.
Drawing
.
Size
(
187
,
388
);
this
.
lv_cardlist
.
TabIndex
=
0
;
this
.
lv_cardlist
.
UseCompatibleStateImageBehavior
=
false
;
this
.
lv_cardlist
.
View
=
System
.
Windows
.
Forms
.
View
.
Details
;
//
//
//
columnHeader1
//
lb_tips
//
//
this
.
columnHeader1
.
Width
=
62
;
this
.
lb_tips
.
Font
=
new
System
.
Drawing
.
Font
(
"Consolas"
,
15F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
0
)));
this
.
lb_tips
.
Location
=
new
System
.
Drawing
.
Point
(
229
,
221
);
this
.
lb_tips
.
Name
=
"lb_tips"
;
this
.
lb_tips
.
Size
=
new
System
.
Drawing
.
Size
(
201
,
32
);
this
.
lb_tips
.
TabIndex
=
1
;
this
.
lb_tips
.
Text
=
"Loading. . ."
;
this
.
lb_tips
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleRight
;
//
//
//
columnHeader2
//
groupBox1
//
//
this
.
columnHeader2
.
Width
=
79
;
this
.
groupBox1
.
Controls
.
Add
(
this
.
label1
);
this
.
groupBox1
.
Location
=
new
System
.
Drawing
.
Point
(
14
,
18
);
this
.
groupBox1
.
Name
=
"groupBox1"
;
this
.
groupBox1
.
Size
=
new
System
.
Drawing
.
Size
(
416
,
200
);
this
.
groupBox1
.
TabIndex
=
2
;
this
.
groupBox1
.
TabStop
=
false
;
//
//
//
ms_main
//
timer1
//
//
this
.
ms_main
.
Items
.
AddRange
(
new
System
.
Windows
.
Forms
.
ToolStripItem
[]
{
this
.
timer1
.
Interval
=
1000
;
this
.
文件
FToolStripMenuItem
,
this
.
timer1
.
Tick
+=
new
System
.
EventHandler
(
this
.
Timer1Tick
);
this
.
编辑
EToolStripMenuItem
,
this
.
帮助
ToolStripMenuItem
});
this
.
ms_main
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
ms_main
.
Name
=
"ms_main"
;
this
.
ms_main
.
Size
=
new
System
.
Drawing
.
Size
(
681
,
25
);
this
.
ms_main
.
TabIndex
=
1
;
this
.
ms_main
.
Text
=
"menuStrip1"
;
//
// 文件FToolStripMenuItem
//
this
.
文件
FToolStripMenuItem
.
DropDownItems
.
AddRange
(
new
System
.
Windows
.
Forms
.
ToolStripItem
[]
{
this
.
打开
OToolStripMenuItem
,
this
.
新建
NToolStripMenuItem
,
this
.
保存
SCToolStripMenuItem
});
this
.
文件
FToolStripMenuItem
.
Name
=
"文件FToolStripMenuItem"
;
this
.
文件
FToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
70
,
21
);
this
.
文件
FToolStripMenuItem
.
Text
=
"数据库(&F)"
;
//
// 打开OToolStripMenuItem
//
this
.
打开
OToolStripMenuItem
.
Name
=
"打开OToolStripMenuItem"
;
this
.
打开
OToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
152
,
22
);
this
.
打开
OToolStripMenuItem
.
Text
=
"打开(&O)"
;
//
// 新建NToolStripMenuItem
//
this
.
新建
NToolStripMenuItem
.
Name
=
"新建NToolStripMenuItem"
;
this
.
新建
NToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
152
,
22
);
this
.
新建
NToolStripMenuItem
.
Text
=
"新建(&N)"
;
//
// 保存SCToolStripMenuItem
//
this
.
保存
SCToolStripMenuItem
.
Name
=
"保存SCToolStripMenuItem"
;
this
.
保存
SCToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
152
,
22
);
this
.
保存
SCToolStripMenuItem
.
Text
=
"保存(&S)"
;
//
// 编辑EToolStripMenuItem
//
this
.
编辑
EToolStripMenuItem
.
DropDownItems
.
AddRange
(
new
System
.
Windows
.
Forms
.
ToolStripItem
[]
{
this
.
撤销
UToolStripMenuItem
,
this
.
还原
YToolStripMenuItem
,
this
.
添加
AToolStripMenuItem
,
this
.
修改
MToolStripMenuItem
,
this
.
删除
DToolStripMenuItem
,
this
.
新建
NToolStripMenuItem1
});
this
.
编辑
EToolStripMenuItem
.
Name
=
"编辑EToolStripMenuItem"
;
this
.
编辑
EToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
59
,
21
);
this
.
编辑
EToolStripMenuItem
.
Text
=
"编辑(&E)"
;
//
// 撤销UToolStripMenuItem
//
this
.
撤销
UToolStripMenuItem
.
Name
=
"撤销UToolStripMenuItem"
;
this
.
撤销
UToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
152
,
22
);
this
.
撤销
UToolStripMenuItem
.
Text
=
"撤销(&U)"
;
//
// 还原YToolStripMenuItem
//
this
.
还原
YToolStripMenuItem
.
Name
=
"还原YToolStripMenuItem"
;
this
.
还原
YToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
152
,
22
);
this
.
还原
YToolStripMenuItem
.
Text
=
"还原(&Y)"
;
//
// 添加AToolStripMenuItem
//
this
.
添加
AToolStripMenuItem
.
Name
=
"添加AToolStripMenuItem"
;
this
.
添加
AToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
152
,
22
);
this
.
添加
AToolStripMenuItem
.
Text
=
"添加(&A)"
;
//
// 修改MToolStripMenuItem
//
this
.
修改
MToolStripMenuItem
.
Name
=
"修改MToolStripMenuItem"
;
this
.
修改
MToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
152
,
22
);
this
.
修改
MToolStripMenuItem
.
Text
=
"修改(&M)"
;
//
// 删除DToolStripMenuItem
//
this
.
删除
DToolStripMenuItem
.
Name
=
"删除DToolStripMenuItem"
;
this
.
删除
DToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
152
,
22
);
this
.
删除
DToolStripMenuItem
.
Text
=
"删除(&D)"
;
//
// 新建NToolStripMenuItem1
//
this
.
新建
NToolStripMenuItem1
.
Name
=
"新建NToolStripMenuItem1"
;
this
.
新建
NToolStripMenuItem1
.
Size
=
new
System
.
Drawing
.
Size
(
152
,
22
);
this
.
新建
NToolStripMenuItem1
.
Text
=
"新建(&N)"
;
//
// 帮助ToolStripMenuItem
//
this
.
帮助
ToolStripMenuItem
.
DropDownItems
.
AddRange
(
new
System
.
Windows
.
Forms
.
ToolStripItem
[]
{
this
.
关于
ToolStripMenuItem
,
this
.
检查更新
ToolStripMenuItem
});
this
.
帮助
ToolStripMenuItem
.
Name
=
"帮助ToolStripMenuItem"
;
this
.
帮助
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
44
,
21
);
this
.
帮助
ToolStripMenuItem
.
Text
=
"帮助"
;
//
// 关于ToolStripMenuItem
//
this
.
关于
ToolStripMenuItem
.
Name
=
"关于ToolStripMenuItem"
;
this
.
关于
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
152
,
22
);
this
.
关于
ToolStripMenuItem
.
Text
=
"关于"
;
//
// 检查更新ToolStripMenuItem
//
this
.
检查更新
ToolStripMenuItem
.
Name
=
"检查更新ToolStripMenuItem"
;
this
.
检查更新
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
152
,
22
);
this
.
检查更新
ToolStripMenuItem
.
Text
=
"检查更新"
;
//
//
// MainForm
// MainForm
//
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
6F
,
12F
);
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
6F
,
12F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
681
,
479
);
this
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
255
)))));
this
.
Controls
.
Add
(
this
.
lv_cardlist
);
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
442
,
262
);
this
.
Controls
.
Add
(
this
.
ms_main
);
this
.
Controls
.
Add
(
this
.
lb_tips
);
this
.
MainMenuStrip
=
this
.
ms_main
;
this
.
Controls
.
Add
(
this
.
groupBox1
);
this
.
FormBorderStyle
=
System
.
Windows
.
Forms
.
FormBorderStyle
.
None
;
this
.
Name
=
"MainForm"
;
this
.
Name
=
"MainForm"
;
this
.
StartPosition
=
System
.
Windows
.
Forms
.
FormStartPosition
.
CenterScreen
;
this
.
StartPosition
=
System
.
Windows
.
Forms
.
FormStartPosition
.
CenterScreen
;
this
.
Text
=
"DataEditorX"
;
this
.
Text
=
"DataEditorX"
;
this
.
ms_main
.
ResumeLayout
(
false
);
this
.
groupBox1
.
ResumeLayout
(
false
);
this
.
ms_main
.
PerformLayout
();
this
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
this
.
PerformLayout
();
}
}
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
检查更新
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
Timer
timer1
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
关于
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
GroupBox
groupBox1
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
帮助
ToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
Label
lb_tips
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
新建
NToolStripMenuItem1
;
private
System
.
Windows
.
Forms
.
Label
label1
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
删除
DToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
修改
MToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
添加
AToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
还原
YToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
撤销
UToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
编辑
EToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
保存
SCToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
新建
NToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
打开
OToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
文件
FToolStripMenuItem
;
private
System
.
Windows
.
Forms
.
MenuStrip
ms_main
;
private
System
.
Windows
.
Forms
.
ColumnHeader
columnHeader2
;
private
System
.
Windows
.
Forms
.
ColumnHeader
columnHeader1
;
private
System
.
Windows
.
Forms
.
ListView
lv_cardlist
;
}
}
}
}
DataEditorX/MainForm.cs
View file @
a499a399
...
@@ -17,27 +17,35 @@ namespace DataEditorX
...
@@ -17,27 +17,35 @@ namespace DataEditorX
/// </summary>
/// </summary>
public
partial
class
MainForm
:
Form
public
partial
class
MainForm
:
Form
{
{
string
m_filename
;
DataEditForm
editForm
;
string
m_title
;
string
datadir
=
".\\data\\"
;
public
MainForm
(
string
filename
)
public
MainForm
(
string
filename
)
{
{
InitFromData
();
Init
(
filename
);
OpenFile
(
filename
);
}
}
public
MainForm
()
public
MainForm
()
{
{
Init
FromData
(
);
Init
(
null
);
}
}
void
InitFromData
()
{
void
Init
(
string
filename
)
{
if
(
filename
==
null
)
editForm
=
new
DataEditForm
();
else
editForm
=
new
DataEditForm
(
filename
);
InitializeComponent
();
InitializeComponent
();
m_title
=
this
.
Text
;
timer1
.
Interval
=
2000
;
}
timer1
.
Enabled
=
true
;
void
OpenFile
(
string
filename
)
editForm
.
InitForm
(
datadir
);
}
void
Timer1Tick
(
object
sender
,
EventArgs
e
)
{
{
m_filename
=
filename
;
timer1
.
Enabled
=
false
;
this
.
Text
=
filename
+
" - "
+
m_title
;
this
.
Hide
();
//
editForm
.
ShowDialog
();
this
.
Close
();
}
}
}
}
}
}
DataEditorX/MainForm.resx
View file @
a499a399
...
@@ -117,7 +117,7 @@
...
@@ -117,7 +117,7 @@
<resheader
name=
"writer"
>
<resheader
name=
"writer"
>
<value>
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
</value>
<value>
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
</value>
</resheader>
</resheader>
<metadata
name=
"
ms_main
.TrayLocation"
type=
"System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
>
<metadata
name=
"
timer1
.TrayLocation"
type=
"System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
>
<value>
17, 17
</value>
<value>
17, 17
</value>
</metadata>
</metadata>
</root>
</root>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment