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
636959c3
Commit
636959c3
authored
Jun 11, 2014
by
247321453
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.3.2.2
parent
581d8941
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
106 additions
and
97 deletions
+106
-97
DataEditorX/DataEditForm.Designer.cs
DataEditorX/DataEditForm.Designer.cs
+32
-32
DataEditorX/DataEditForm.cs
DataEditorX/DataEditForm.cs
+67
-62
DataEditorX/Properties/AssemblyInfo.cs
DataEditorX/Properties/AssemblyInfo.cs
+1
-1
DataEditorX/readme.txt
DataEditorX/readme.txt
+3
-1
win32/DataEditorX.exe
win32/DataEditorX.exe
+0
-0
win32/readme.txt
win32/readme.txt
+3
-1
win32/win32.zip
win32/win32.zip
+0
-0
No files found.
DataEditorX/DataEditForm.Designer.cs
View file @
636959c3
...
@@ -257,14 +257,14 @@ private void InitializeComponent()
...
@@ -257,14 +257,14 @@ private void InitializeComponent()
//
//
this
.
cb_cardattribute
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cb_cardattribute
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cb_cardattribute
.
FormattingEnabled
=
true
;
this
.
cb_cardattribute
.
FormattingEnabled
=
true
;
this
.
cb_cardattribute
.
Location
=
new
System
.
Drawing
.
Point
(
40
6
,
80
);
this
.
cb_cardattribute
.
Location
=
new
System
.
Drawing
.
Point
(
40
2
,
80
);
this
.
cb_cardattribute
.
Name
=
"cb_cardattribute"
;
this
.
cb_cardattribute
.
Name
=
"cb_cardattribute"
;
this
.
cb_cardattribute
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
20
);
this
.
cb_cardattribute
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
20
);
this
.
cb_cardattribute
.
TabIndex
=
2
;
this
.
cb_cardattribute
.
TabIndex
=
2
;
//
//
// tb_cardname
// tb_cardname
//
//
this
.
tb_cardname
.
Location
=
new
System
.
Drawing
.
Point
(
2
20
,
29
);
this
.
tb_cardname
.
Location
=
new
System
.
Drawing
.
Point
(
2
17
,
29
);
this
.
tb_cardname
.
Name
=
"tb_cardname"
;
this
.
tb_cardname
.
Name
=
"tb_cardname"
;
this
.
tb_cardname
.
Size
=
new
System
.
Drawing
.
Size
(
325
,
21
);
this
.
tb_cardname
.
Size
=
new
System
.
Drawing
.
Size
(
325
,
21
);
this
.
tb_cardname
.
TabIndex
=
4
;
this
.
tb_cardname
.
TabIndex
=
4
;
...
@@ -275,7 +275,7 @@ private void InitializeComponent()
...
@@ -275,7 +275,7 @@ private void InitializeComponent()
//
//
this
.
cb_cardrule
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cb_cardrule
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cb_cardrule
.
FormattingEnabled
=
true
;
this
.
cb_cardrule
.
FormattingEnabled
=
true
;
this
.
cb_cardrule
.
Location
=
new
System
.
Drawing
.
Point
(
40
6
,
54
);
this
.
cb_cardrule
.
Location
=
new
System
.
Drawing
.
Point
(
40
2
,
54
);
this
.
cb_cardrule
.
Name
=
"cb_cardrule"
;
this
.
cb_cardrule
.
Name
=
"cb_cardrule"
;
this
.
cb_cardrule
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
20
);
this
.
cb_cardrule
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
20
);
this
.
cb_cardrule
.
TabIndex
=
2
;
this
.
cb_cardrule
.
TabIndex
=
2
;
...
@@ -284,7 +284,7 @@ private void InitializeComponent()
...
@@ -284,7 +284,7 @@ private void InitializeComponent()
//
//
this
.
cb_cardlevel
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cb_cardlevel
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cb_cardlevel
.
FormattingEnabled
=
true
;
this
.
cb_cardlevel
.
FormattingEnabled
=
true
;
this
.
cb_cardlevel
.
Location
=
new
System
.
Drawing
.
Point
(
40
6
,
132
);
this
.
cb_cardlevel
.
Location
=
new
System
.
Drawing
.
Point
(
40
2
,
132
);
this
.
cb_cardlevel
.
Name
=
"cb_cardlevel"
;
this
.
cb_cardlevel
.
Name
=
"cb_cardlevel"
;
this
.
cb_cardlevel
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
20
);
this
.
cb_cardlevel
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
20
);
this
.
cb_cardlevel
.
TabIndex
=
2
;
this
.
cb_cardlevel
.
TabIndex
=
2
;
...
@@ -293,7 +293,7 @@ private void InitializeComponent()
...
@@ -293,7 +293,7 @@ private void InitializeComponent()
//
//
this
.
cb_cardrace
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cb_cardrace
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cb_cardrace
.
FormattingEnabled
=
true
;
this
.
cb_cardrace
.
FormattingEnabled
=
true
;
this
.
cb_cardrace
.
Location
=
new
System
.
Drawing
.
Point
(
40
6
,
106
);
this
.
cb_cardrace
.
Location
=
new
System
.
Drawing
.
Point
(
40
2
,
106
);
this
.
cb_cardrace
.
Name
=
"cb_cardrace"
;
this
.
cb_cardrace
.
Name
=
"cb_cardrace"
;
this
.
cb_cardrace
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
20
);
this
.
cb_cardrace
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
20
);
this
.
cb_cardrace
.
TabIndex
=
2
;
this
.
cb_cardrace
.
TabIndex
=
2
;
...
@@ -302,7 +302,7 @@ private void InitializeComponent()
...
@@ -302,7 +302,7 @@ private void InitializeComponent()
//
//
this
.
cb_setname2
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cb_setname2
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cb_setname2
.
FormattingEnabled
=
true
;
this
.
cb_setname2
.
FormattingEnabled
=
true
;
this
.
cb_setname2
.
Location
=
new
System
.
Drawing
.
Point
(
40
6
,
183
);
this
.
cb_setname2
.
Location
=
new
System
.
Drawing
.
Point
(
40
2
,
183
);
this
.
cb_setname2
.
Name
=
"cb_setname2"
;
this
.
cb_setname2
.
Name
=
"cb_setname2"
;
this
.
cb_setname2
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
20
);
this
.
cb_setname2
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
20
);
this
.
cb_setname2
.
TabIndex
=
2
;
this
.
cb_setname2
.
TabIndex
=
2
;
...
@@ -311,7 +311,7 @@ private void InitializeComponent()
...
@@ -311,7 +311,7 @@ private void InitializeComponent()
//
//
this
.
cb_setname1
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cb_setname1
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cb_setname1
.
FormattingEnabled
=
true
;
this
.
cb_setname1
.
FormattingEnabled
=
true
;
this
.
cb_setname1
.
Location
=
new
System
.
Drawing
.
Point
(
40
6
,
158
);
this
.
cb_setname1
.
Location
=
new
System
.
Drawing
.
Point
(
40
2
,
158
);
this
.
cb_setname1
.
Name
=
"cb_setname1"
;
this
.
cb_setname1
.
Name
=
"cb_setname1"
;
this
.
cb_setname1
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
20
);
this
.
cb_setname1
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
20
);
this
.
cb_setname1
.
TabIndex
=
2
;
this
.
cb_setname1
.
TabIndex
=
2
;
...
@@ -320,7 +320,7 @@ private void InitializeComponent()
...
@@ -320,7 +320,7 @@ private void InitializeComponent()
//
//
this
.
cb_setname4
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cb_setname4
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cb_setname4
.
FormattingEnabled
=
true
;
this
.
cb_setname4
.
FormattingEnabled
=
true
;
this
.
cb_setname4
.
Location
=
new
System
.
Drawing
.
Point
(
40
6
,
233
);
this
.
cb_setname4
.
Location
=
new
System
.
Drawing
.
Point
(
40
2
,
233
);
this
.
cb_setname4
.
Name
=
"cb_setname4"
;
this
.
cb_setname4
.
Name
=
"cb_setname4"
;
this
.
cb_setname4
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
20
);
this
.
cb_setname4
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
20
);
this
.
cb_setname4
.
TabIndex
=
2
;
this
.
cb_setname4
.
TabIndex
=
2
;
...
@@ -329,7 +329,7 @@ private void InitializeComponent()
...
@@ -329,7 +329,7 @@ private void InitializeComponent()
//
//
this
.
cb_setname3
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cb_setname3
.
DropDownStyle
=
System
.
Windows
.
Forms
.
ComboBoxStyle
.
DropDownList
;
this
.
cb_setname3
.
FormattingEnabled
=
true
;
this
.
cb_setname3
.
FormattingEnabled
=
true
;
this
.
cb_setname3
.
Location
=
new
System
.
Drawing
.
Point
(
40
6
,
208
);
this
.
cb_setname3
.
Location
=
new
System
.
Drawing
.
Point
(
40
2
,
208
);
this
.
cb_setname3
.
Name
=
"cb_setname3"
;
this
.
cb_setname3
.
Name
=
"cb_setname3"
;
this
.
cb_setname3
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
20
);
this
.
cb_setname3
.
Size
=
new
System
.
Drawing
.
Size
(
140
,
20
);
this
.
cb_setname3
.
TabIndex
=
2
;
this
.
cb_setname3
.
TabIndex
=
2
;
...
@@ -339,7 +339,7 @@ private void InitializeComponent()
...
@@ -339,7 +339,7 @@ private void InitializeComponent()
this
.
tb_cardtext
.
AcceptsReturn
=
true
;
this
.
tb_cardtext
.
AcceptsReturn
=
true
;
this
.
tb_cardtext
.
AcceptsTab
=
true
;
this
.
tb_cardtext
.
AcceptsTab
=
true
;
this
.
tb_cardtext
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
tb_cardtext
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
10.5F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
tb_cardtext
.
Location
=
new
System
.
Drawing
.
Point
(
22
1
,
337
);
this
.
tb_cardtext
.
Location
=
new
System
.
Drawing
.
Point
(
22
0
,
337
);
this
.
tb_cardtext
.
Multiline
=
true
;
this
.
tb_cardtext
.
Multiline
=
true
;
this
.
tb_cardtext
.
Name
=
"tb_cardtext"
;
this
.
tb_cardtext
.
Name
=
"tb_cardtext"
;
this
.
tb_cardtext
.
ScrollBars
=
System
.
Windows
.
Forms
.
ScrollBars
.
Vertical
;
this
.
tb_cardtext
.
ScrollBars
=
System
.
Windows
.
Forms
.
ScrollBars
.
Vertical
;
...
@@ -353,7 +353,7 @@ private void InitializeComponent()
...
@@ -353,7 +353,7 @@ private void InitializeComponent()
this
.
lb_scripttext
.
FormattingEnabled
=
true
;
this
.
lb_scripttext
.
FormattingEnabled
=
true
;
this
.
lb_scripttext
.
IntegralHeight
=
false
;
this
.
lb_scripttext
.
IntegralHeight
=
false
;
this
.
lb_scripttext
.
ItemHeight
=
12
;
this
.
lb_scripttext
.
ItemHeight
=
12
;
this
.
lb_scripttext
.
Location
=
new
System
.
Drawing
.
Point
(
5
50
,
384
);
this
.
lb_scripttext
.
Location
=
new
System
.
Drawing
.
Point
(
5
48
,
384
);
this
.
lb_scripttext
.
Name
=
"lb_scripttext"
;
this
.
lb_scripttext
.
Name
=
"lb_scripttext"
;
this
.
lb_scripttext
.
ScrollAlwaysVisible
=
true
;
this
.
lb_scripttext
.
ScrollAlwaysVisible
=
true
;
this
.
lb_scripttext
.
Size
=
new
System
.
Drawing
.
Size
(
310
,
126
);
this
.
lb_scripttext
.
Size
=
new
System
.
Drawing
.
Size
(
310
,
126
);
...
@@ -363,7 +363,7 @@ private void InitializeComponent()
...
@@ -363,7 +363,7 @@ private void InitializeComponent()
// tb_edittext
// tb_edittext
//
//
this
.
tb_edittext
.
HideSelection
=
false
;
this
.
tb_edittext
.
HideSelection
=
false
;
this
.
tb_edittext
.
Location
=
new
System
.
Drawing
.
Point
(
5
50
,
515
);
this
.
tb_edittext
.
Location
=
new
System
.
Drawing
.
Point
(
5
48
,
515
);
this
.
tb_edittext
.
MaxLength
=
2000
;
this
.
tb_edittext
.
MaxLength
=
2000
;
this
.
tb_edittext
.
Name
=
"tb_edittext"
;
this
.
tb_edittext
.
Name
=
"tb_edittext"
;
this
.
tb_edittext
.
ScrollBars
=
System
.
Windows
.
Forms
.
ScrollBars
.
Vertical
;
this
.
tb_edittext
.
ScrollBars
=
System
.
Windows
.
Forms
.
ScrollBars
.
Vertical
;
...
@@ -403,7 +403,7 @@ private void InitializeComponent()
...
@@ -403,7 +403,7 @@ private void InitializeComponent()
// lb_atkdef
// lb_atkdef
//
//
this
.
lb_atkdef
.
AutoSize
=
true
;
this
.
lb_atkdef
.
AutoSize
=
true
;
this
.
lb_atkdef
.
Location
=
new
System
.
Drawing
.
Point
(
3
86
,
315
);
this
.
lb_atkdef
.
Location
=
new
System
.
Drawing
.
Point
(
3
99
,
315
);
this
.
lb_atkdef
.
Name
=
"lb_atkdef"
;
this
.
lb_atkdef
.
Name
=
"lb_atkdef"
;
this
.
lb_atkdef
.
Size
=
new
System
.
Drawing
.
Size
(
47
,
12
);
this
.
lb_atkdef
.
Size
=
new
System
.
Drawing
.
Size
(
47
,
12
);
this
.
lb_atkdef
.
TabIndex
=
7
;
this
.
lb_atkdef
.
TabIndex
=
7
;
...
@@ -457,7 +457,7 @@ private void InitializeComponent()
...
@@ -457,7 +457,7 @@ private void InitializeComponent()
// btn_PageDown
// btn_PageDown
//
//
this
.
btn_PageDown
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)((
System
.
Windows
.
Forms
.
AnchorStyles
.
Bottom
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)));
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
(
15
4
,
540
);
this
.
btn_PageDown
.
Location
=
new
System
.
Drawing
.
Point
(
15
3
,
540
);
this
.
btn_PageDown
.
Name
=
"btn_PageDown"
;
this
.
btn_PageDown
.
Name
=
"btn_PageDown"
;
this
.
btn_PageDown
.
Size
=
new
System
.
Drawing
.
Size
(
64
,
27
);
this
.
btn_PageDown
.
Size
=
new
System
.
Drawing
.
Size
(
64
,
27
);
this
.
btn_PageDown
.
TabIndex
=
5
;
this
.
btn_PageDown
.
TabIndex
=
5
;
...
@@ -467,7 +467,7 @@ private void InitializeComponent()
...
@@ -467,7 +467,7 @@ private void InitializeComponent()
//
//
// btn_add
// btn_add
//
//
this
.
btn_add
.
Location
=
new
System
.
Drawing
.
Point
(
5
51
,
540
);
this
.
btn_add
.
Location
=
new
System
.
Drawing
.
Point
(
5
48
,
540
);
this
.
btn_add
.
Name
=
"btn_add"
;
this
.
btn_add
.
Name
=
"btn_add"
;
this
.
btn_add
.
Size
=
new
System
.
Drawing
.
Size
(
84
,
28
);
this
.
btn_add
.
Size
=
new
System
.
Drawing
.
Size
(
84
,
28
);
this
.
btn_add
.
TabIndex
=
5
;
this
.
btn_add
.
TabIndex
=
5
;
...
@@ -478,7 +478,7 @@ private void InitializeComponent()
...
@@ -478,7 +478,7 @@ private void InitializeComponent()
// label5
// label5
//
//
this
.
label5
.
AutoSize
=
true
;
this
.
label5
.
AutoSize
=
true
;
this
.
label5
.
Location
=
new
System
.
Drawing
.
Point
(
4
89
,
314
);
this
.
label5
.
Location
=
new
System
.
Drawing
.
Point
(
4
91
,
314
);
this
.
label5
.
Name
=
"label5"
;
this
.
label5
.
Name
=
"label5"
;
this
.
label5
.
Size
=
new
System
.
Drawing
.
Size
(
11
,
12
);
this
.
label5
.
Size
=
new
System
.
Drawing
.
Size
(
11
,
12
);
this
.
label5
.
TabIndex
=
7
;
this
.
label5
.
TabIndex
=
7
;
...
@@ -486,7 +486,7 @@ private void InitializeComponent()
...
@@ -486,7 +486,7 @@ private void InitializeComponent()
//
//
// tb_atk
// tb_atk
//
//
this
.
tb_atk
.
Location
=
new
System
.
Drawing
.
Point
(
44
7
,
310
);
this
.
tb_atk
.
Location
=
new
System
.
Drawing
.
Point
(
44
9
,
310
);
this
.
tb_atk
.
MaxLength
=
12
;
this
.
tb_atk
.
MaxLength
=
12
;
this
.
tb_atk
.
Name
=
"tb_atk"
;
this
.
tb_atk
.
Name
=
"tb_atk"
;
this
.
tb_atk
.
Size
=
new
System
.
Drawing
.
Size
(
38
,
21
);
this
.
tb_atk
.
Size
=
new
System
.
Drawing
.
Size
(
38
,
21
);
...
@@ -496,7 +496,7 @@ private void InitializeComponent()
...
@@ -496,7 +496,7 @@ private void InitializeComponent()
//
//
// tb_def
// tb_def
//
//
this
.
tb_def
.
Location
=
new
System
.
Drawing
.
Point
(
50
5
,
310
);
this
.
tb_def
.
Location
=
new
System
.
Drawing
.
Point
(
50
4
,
310
);
this
.
tb_def
.
MaxLength
=
12
;
this
.
tb_def
.
MaxLength
=
12
;
this
.
tb_def
.
Name
=
"tb_def"
;
this
.
tb_def
.
Name
=
"tb_def"
;
this
.
tb_def
.
Size
=
new
System
.
Drawing
.
Size
(
38
,
21
);
this
.
tb_def
.
Size
=
new
System
.
Drawing
.
Size
(
38
,
21
);
...
@@ -507,7 +507,7 @@ private void InitializeComponent()
...
@@ -507,7 +507,7 @@ private void InitializeComponent()
// lb_cardcode
// lb_cardcode
//
//
this
.
lb_cardcode
.
AutoSize
=
true
;
this
.
lb_cardcode
.
AutoSize
=
true
;
this
.
lb_cardcode
.
Location
=
new
System
.
Drawing
.
Point
(
40
5
,
288
);
this
.
lb_cardcode
.
Location
=
new
System
.
Drawing
.
Point
(
40
1
,
288
);
this
.
lb_cardcode
.
Name
=
"lb_cardcode"
;
this
.
lb_cardcode
.
Name
=
"lb_cardcode"
;
this
.
lb_cardcode
.
Size
=
new
System
.
Drawing
.
Size
(
59
,
12
);
this
.
lb_cardcode
.
Size
=
new
System
.
Drawing
.
Size
(
59
,
12
);
this
.
lb_cardcode
.
TabIndex
=
7
;
this
.
lb_cardcode
.
TabIndex
=
7
;
...
@@ -515,7 +515,7 @@ private void InitializeComponent()
...
@@ -515,7 +515,7 @@ private void InitializeComponent()
//
//
// tb_cardcode
// tb_cardcode
//
//
this
.
tb_cardcode
.
Location
=
new
System
.
Drawing
.
Point
(
47
7
,
285
);
this
.
tb_cardcode
.
Location
=
new
System
.
Drawing
.
Point
(
47
5
,
285
);
this
.
tb_cardcode
.
MaxLength
=
12
;
this
.
tb_cardcode
.
MaxLength
=
12
;
this
.
tb_cardcode
.
Name
=
"tb_cardcode"
;
this
.
tb_cardcode
.
Name
=
"tb_cardcode"
;
this
.
tb_cardcode
.
Size
=
new
System
.
Drawing
.
Size
(
68
,
21
);
this
.
tb_cardcode
.
Size
=
new
System
.
Drawing
.
Size
(
68
,
21
);
...
@@ -527,7 +527,7 @@ private void InitializeComponent()
...
@@ -527,7 +527,7 @@ private void InitializeComponent()
// lb_cardalias
// lb_cardalias
//
//
this
.
lb_cardalias
.
AutoSize
=
true
;
this
.
lb_cardalias
.
AutoSize
=
true
;
this
.
lb_cardalias
.
Location
=
new
System
.
Drawing
.
Point
(
40
5
,
261
);
this
.
lb_cardalias
.
Location
=
new
System
.
Drawing
.
Point
(
40
1
,
261
);
this
.
lb_cardalias
.
Name
=
"lb_cardalias"
;
this
.
lb_cardalias
.
Name
=
"lb_cardalias"
;
this
.
lb_cardalias
.
Size
=
new
System
.
Drawing
.
Size
(
65
,
12
);
this
.
lb_cardalias
.
Size
=
new
System
.
Drawing
.
Size
(
65
,
12
);
this
.
lb_cardalias
.
TabIndex
=
7
;
this
.
lb_cardalias
.
TabIndex
=
7
;
...
@@ -535,7 +535,7 @@ private void InitializeComponent()
...
@@ -535,7 +535,7 @@ private void InitializeComponent()
//
//
// tb_cardalias
// tb_cardalias
//
//
this
.
tb_cardalias
.
Location
=
new
System
.
Drawing
.
Point
(
47
7
,
258
);
this
.
tb_cardalias
.
Location
=
new
System
.
Drawing
.
Point
(
47
5
,
258
);
this
.
tb_cardalias
.
MaxLength
=
12
;
this
.
tb_cardalias
.
MaxLength
=
12
;
this
.
tb_cardalias
.
Name
=
"tb_cardalias"
;
this
.
tb_cardalias
.
Name
=
"tb_cardalias"
;
this
.
tb_cardalias
.
Size
=
new
System
.
Drawing
.
Size
(
67
,
21
);
this
.
tb_cardalias
.
Size
=
new
System
.
Drawing
.
Size
(
67
,
21
);
...
@@ -545,7 +545,7 @@ private void InitializeComponent()
...
@@ -545,7 +545,7 @@ private void InitializeComponent()
//
//
// btn_mod
// btn_mod
//
//
this
.
btn_mod
.
Location
=
new
System
.
Drawing
.
Point
(
6
41
,
540
);
this
.
btn_mod
.
Location
=
new
System
.
Drawing
.
Point
(
6
38
,
540
);
this
.
btn_mod
.
Name
=
"btn_mod"
;
this
.
btn_mod
.
Name
=
"btn_mod"
;
this
.
btn_mod
.
Size
=
new
System
.
Drawing
.
Size
(
84
,
28
);
this
.
btn_mod
.
Size
=
new
System
.
Drawing
.
Size
(
84
,
28
);
this
.
btn_mod
.
TabIndex
=
5
;
this
.
btn_mod
.
TabIndex
=
5
;
...
@@ -556,7 +556,7 @@ private void InitializeComponent()
...
@@ -556,7 +556,7 @@ private void InitializeComponent()
// btn_del
// btn_del
//
//
this
.
btn_del
.
ForeColor
=
System
.
Drawing
.
Color
.
DarkRed
;
this
.
btn_del
.
ForeColor
=
System
.
Drawing
.
Color
.
DarkRed
;
this
.
btn_del
.
Location
=
new
System
.
Drawing
.
Point
(
46
2
,
540
);
this
.
btn_del
.
Location
=
new
System
.
Drawing
.
Point
(
46
1
,
540
);
this
.
btn_del
.
Name
=
"btn_del"
;
this
.
btn_del
.
Name
=
"btn_del"
;
this
.
btn_del
.
Size
=
new
System
.
Drawing
.
Size
(
84
,
28
);
this
.
btn_del
.
Size
=
new
System
.
Drawing
.
Size
(
84
,
28
);
this
.
btn_del
.
TabIndex
=
5
;
this
.
btn_del
.
TabIndex
=
5
;
...
@@ -567,7 +567,7 @@ private void InitializeComponent()
...
@@ -567,7 +567,7 @@ private void InitializeComponent()
// btn_lua
// btn_lua
//
//
this
.
btn_lua
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
0
)))),
((
int
)(((
byte
)(
64
)))),
((
int
)(((
byte
)(
0
)))));
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
(
77
9
,
539
);
this
.
btn_lua
.
Location
=
new
System
.
Drawing
.
Point
(
77
6
,
539
);
this
.
btn_lua
.
Name
=
"btn_lua"
;
this
.
btn_lua
.
Name
=
"btn_lua"
;
this
.
btn_lua
.
Size
=
new
System
.
Drawing
.
Size
(
84
,
28
);
this
.
btn_lua
.
Size
=
new
System
.
Drawing
.
Size
(
84
,
28
);
this
.
btn_lua
.
TabIndex
=
5
;
this
.
btn_lua
.
TabIndex
=
5
;
...
@@ -587,7 +587,7 @@ private void InitializeComponent()
...
@@ -587,7 +587,7 @@ private void InitializeComponent()
//
//
// btn_serach
// btn_serach
//
//
this
.
btn_serach
.
Location
=
new
System
.
Drawing
.
Point
(
2
20
,
540
);
this
.
btn_serach
.
Location
=
new
System
.
Drawing
.
Point
(
2
19
,
540
);
this
.
btn_serach
.
Name
=
"btn_serach"
;
this
.
btn_serach
.
Name
=
"btn_serach"
;
this
.
btn_serach
.
Size
=
new
System
.
Drawing
.
Size
(
84
,
28
);
this
.
btn_serach
.
Size
=
new
System
.
Drawing
.
Size
(
84
,
28
);
this
.
btn_serach
.
TabIndex
=
0
;
this
.
btn_serach
.
TabIndex
=
0
;
...
@@ -598,7 +598,7 @@ private void InitializeComponent()
...
@@ -598,7 +598,7 @@ private void InitializeComponent()
// lb_categorys
// lb_categorys
//
//
this
.
lb_categorys
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
255
)))));
this
.
lb_categorys
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
255
)))));
this
.
lb_categorys
.
Location
=
new
System
.
Drawing
.
Point
(
5
50
,
171
);
this
.
lb_categorys
.
Location
=
new
System
.
Drawing
.
Point
(
5
48
,
171
);
this
.
lb_categorys
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
3
,
3
,
3
,
0
);
this
.
lb_categorys
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
3
,
3
,
3
,
0
);
this
.
lb_categorys
.
Name
=
"lb_categorys"
;
this
.
lb_categorys
.
Name
=
"lb_categorys"
;
this
.
lb_categorys
.
Size
=
new
System
.
Drawing
.
Size
(
310
,
16
);
this
.
lb_categorys
.
Size
=
new
System
.
Drawing
.
Size
(
310
,
16
);
...
@@ -632,7 +632,7 @@ private void InitializeComponent()
...
@@ -632,7 +632,7 @@ private void InitializeComponent()
// pl_cardtype
// pl_cardtype
//
//
this
.
pl_cardtype
.
AutoScroll
=
true
;
this
.
pl_cardtype
.
AutoScroll
=
true
;
this
.
pl_cardtype
.
Location
=
new
System
.
Drawing
.
Point
(
5
50
,
46
);
this
.
pl_cardtype
.
Location
=
new
System
.
Drawing
.
Point
(
5
48
,
46
);
this
.
pl_cardtype
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
1
,
2
,
1
,
2
);
this
.
pl_cardtype
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
1
,
2
,
1
,
2
);
this
.
pl_cardtype
.
Name
=
"pl_cardtype"
;
this
.
pl_cardtype
.
Name
=
"pl_cardtype"
;
this
.
pl_cardtype
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
2
);
this
.
pl_cardtype
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
2
);
...
@@ -642,7 +642,7 @@ private void InitializeComponent()
...
@@ -642,7 +642,7 @@ private void InitializeComponent()
// pl_category
// pl_category
//
//
this
.
pl_category
.
AutoScroll
=
true
;
this
.
pl_category
.
AutoScroll
=
true
;
this
.
pl_category
.
Location
=
new
System
.
Drawing
.
Point
(
5
50
,
189
);
this
.
pl_category
.
Location
=
new
System
.
Drawing
.
Point
(
5
48
,
189
);
this
.
pl_category
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
1
,
2
,
1
,
2
);
this
.
pl_category
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
1
,
2
,
1
,
2
);
this
.
pl_category
.
Name
=
"pl_category"
;
this
.
pl_category
.
Name
=
"pl_category"
;
this
.
pl_category
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
2
);
this
.
pl_category
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
2
);
...
@@ -654,7 +654,7 @@ private void InitializeComponent()
...
@@ -654,7 +654,7 @@ private void InitializeComponent()
this
.
pl_image
.
BackColor
=
System
.
Drawing
.
SystemColors
.
ButtonHighlight
;
this
.
pl_image
.
BackColor
=
System
.
Drawing
.
SystemColors
.
ButtonHighlight
;
this
.
pl_image
.
BackgroundImageLayout
=
System
.
Windows
.
Forms
.
ImageLayout
.
Stretch
;
this
.
pl_image
.
BackgroundImageLayout
=
System
.
Windows
.
Forms
.
ImageLayout
.
Stretch
;
this
.
pl_image
.
BorderStyle
=
System
.
Windows
.
Forms
.
BorderStyle
.
FixedSingle
;
this
.
pl_image
.
BorderStyle
=
System
.
Windows
.
Forms
.
BorderStyle
.
FixedSingle
;
this
.
pl_image
.
Location
=
new
System
.
Drawing
.
Point
(
2
21
,
52
);
this
.
pl_image
.
Location
=
new
System
.
Drawing
.
Point
(
2
18
,
52
);
this
.
pl_image
.
Name
=
"pl_image"
;
this
.
pl_image
.
Name
=
"pl_image"
;
this
.
pl_image
.
Size
=
new
System
.
Drawing
.
Size
(
179
,
256
);
this
.
pl_image
.
Size
=
new
System
.
Drawing
.
Size
(
179
,
256
);
this
.
pl_image
.
TabIndex
=
14
;
this
.
pl_image
.
TabIndex
=
14
;
...
@@ -662,7 +662,7 @@ private void InitializeComponent()
...
@@ -662,7 +662,7 @@ private void InitializeComponent()
// lb_types
// lb_types
//
//
this
.
lb_types
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
255
)))));
this
.
lb_types
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
255
)))));
this
.
lb_types
.
Location
=
new
System
.
Drawing
.
Point
(
5
50
,
28
);
this
.
lb_types
.
Location
=
new
System
.
Drawing
.
Point
(
5
48
,
28
);
this
.
lb_types
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
3
,
3
,
3
,
0
);
this
.
lb_types
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
3
,
3
,
3
,
0
);
this
.
lb_types
.
Name
=
"lb_types"
;
this
.
lb_types
.
Name
=
"lb_types"
;
this
.
lb_types
.
Size
=
new
System
.
Drawing
.
Size
(
310
,
16
);
this
.
lb_types
.
Size
=
new
System
.
Drawing
.
Size
(
310
,
16
);
...
@@ -673,7 +673,7 @@ private void InitializeComponent()
...
@@ -673,7 +673,7 @@ private void InitializeComponent()
// lb_tiptexts
// lb_tiptexts
//
//
this
.
lb_tiptexts
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
255
)))));
this
.
lb_tiptexts
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
192
)))),
((
int
)(((
byte
)(
255
)))));
this
.
lb_tiptexts
.
Location
=
new
System
.
Drawing
.
Point
(
5
50
,
365
);
this
.
lb_tiptexts
.
Location
=
new
System
.
Drawing
.
Point
(
5
48
,
365
);
this
.
lb_tiptexts
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
3
,
3
,
3
,
0
);
this
.
lb_tiptexts
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
3
,
3
,
3
,
0
);
this
.
lb_tiptexts
.
Name
=
"lb_tiptexts"
;
this
.
lb_tiptexts
.
Name
=
"lb_tiptexts"
;
this
.
lb_tiptexts
.
Size
=
new
System
.
Drawing
.
Size
(
310
,
16
);
this
.
lb_tiptexts
.
Size
=
new
System
.
Drawing
.
Size
(
310
,
16
);
...
...
DataEditorX/DataEditForm.cs
View file @
636959c3
...
@@ -43,32 +43,8 @@ public partial class DataEditForm : Form
...
@@ -43,32 +43,8 @@ public partial class DataEditForm : Form
Dictionary<long, string> dicSetnames=null;
Dictionary<long, string> dicSetnames=null;
Dictionary<long, string> dicCardTypes=null;
Dictionary<long, string> dicCardTypes=null;
Dictionary<long, string> dicCardcategorys=null;
Dictionary<long, string> dicCardcategorys=null;
string
conflang
=
"language.txt"
;
string conflang, confrule, confattribute, confrace, conflevel;
string
confrule
=
"card-rule.txt"
;
string confsetname, conftype, confcategory, confcover;
string
confattribute
=
"card-attribute.txt"
;
string
confrace
=
"card-race.txt"
;
string
conflevel
=
"card-level.txt"
;
string
confsetname
=
"card-setname.txt"
;
string
conftype
=
"card-type.txt"
;
string
confcategory
=
"card-category.txt"
;
string
confcover
=
"cover.jpg"
;
void
SetCDB
(
string
cdb
)
{
this
.
nowCdbFile
=
cdb
;
if
(
cdb
.
Length
>
0
)
{
this
.
Text
=
nowCdbFile
+
"-"
+
title
;
char
SEP
=
Path
.
DirectorySeparatorChar
;
int
l
=
nowCdbFile
.
LastIndexOf
(
SEP
);
GAMEPATH
=(
l
>
0
)?
nowCdbFile
.
Substring
(
0
,
l
+
1
):
cdb
;
}
PICPATH
=
Path
.
Combine
(
GAMEPATH
,
"pics"
);
LUAPTH
=
Path
.
Combine
(
GAMEPATH
,
"script"
);
}
#
endregion
#
region
界面初始化
public DataEditForm(string cdbfile)
public DataEditForm(string cdbfile)
{
{
InitializeComponent();
InitializeComponent();
...
@@ -78,26 +54,39 @@ public DataEditForm(string cdbfile)
...
@@ -78,26 +54,39 @@ public DataEditForm(string cdbfile)
public DataEditForm()
public DataEditForm()
{
{
InitializeComponent();
InitializeComponent();
nowCdbFile="";
}
}
#endregion
#region 界面初始化
//窗体第一次加载
void DataEditFormLoad(object sender, EventArgs e)
void DataEditFormLoad(object sender, EventArgs e)
{
{
InitListRows();
InitListRows();
Version
ver
=
new
Version
(
Application
.
ProductVersion
);
string
strVer
=
ver
.
ToString
();
#if DEBUG
#if DEBUG
this.Text=this.Text+"(DEBUG)";
this.Text=this.Text+"(DEBUG)";
#endif
#endif
this
.
Text
=
this
.
Text
+
" Ver:"
+
strVer
;
this.Text=this.Text+" Ver:"+Application.ProductVersion;
title=this.Text;
title=this.Text;
if
(!
InitPath
())
//界面初始化
string dir=ConfigurationManager.AppSettings["language"];
if(string.IsNullOrEmpty(dir))
{
{
Application.Exit();
Application.Exit();
}
}
string datapath=Path.Combine(Application.StartupPath, dir);
InitPath(datapath);
MyMsg.Init(conflang);
MyMsg.Init(conflang);
InitForm
();
InitString();
//set null card
InitGameData();
SetCDB("");
//设置空白卡片
oldCard=new Card(0);
oldCard=new Card(0);
SetCard(oldCard);
SetCard(oldCard);
isbgcheck=true;
isbgcheck=true;
...
@@ -107,7 +96,13 @@ void DataEditFormLoad(object sender, EventArgs e)
...
@@ -107,7 +96,13 @@ void DataEditFormLoad(object sender, EventArgs e)
Open(nowCdbFile);
Open(nowCdbFile);
}
}
//窗体关闭
void DataEditFormFormClosing(object sender, FormClosingEventArgs e)
{
}
//设置界面文字
void InitString()
void InitString()
{
{
btn_add.Text=MyMsg.GetString("Add");
btn_add.Text=MyMsg.GetString("Add");
...
@@ -141,37 +136,37 @@ void InitString()
...
@@ -141,37 +136,37 @@ void InitString()
lv_cardlist.Columns[1].Text=MyMsg.GetString("Card Name");
lv_cardlist.Columns[1].Text=MyMsg.GetString("Card Name");
}
}
bool
InitPath
()
//按cdb路径设置目录
void SetCDB(string cdb)
{
{
//
this.nowCdbFile=cdb;
string
dir
=
ConfigurationManager
.
AppSettings
[
"language"
];
if(cdb.Length>0)
if
(
string
.
IsNullOrEmpty
(
dir
))
{
{
return
false
;
this.Text=nowCdbFile+"-"+title;
char SEP=Path.DirectorySeparatorChar;
int l=nowCdbFile.LastIndexOf(SEP);
GAMEPATH=(l>0)?nowCdbFile.Substring(0,l+1):cdb;
}
}
string
datapath
=
Path
.
Combine
(
Application
.
StartupPath
,
dir
);
else
//
GAMEPATH=Application.StartupPath;
GAMEPATH=Application.StartupPath;
PICPATH=Path.Combine(GAMEPATH,"pics");
PICPATH=Path.Combine(GAMEPATH,"pics");
LUAPTH=Path.Combine(GAMEPATH,"script");
LUAPTH=Path.Combine(GAMEPATH,"script");
conflang
=
Path
.
Combine
(
datapath
,
conflang
);
confrule
=
Path
.
Combine
(
datapath
,
confrule
);
confattribute
=
Path
.
Combine
(
datapath
,
confattribute
);
confrace
=
Path
.
Combine
(
datapath
,
confrace
);
conflevel
=
Path
.
Combine
(
datapath
,
conflevel
);
confsetname
=
Path
.
Combine
(
datapath
,
confsetname
);
conftype
=
Path
.
Combine
(
datapath
,
conftype
);
confcategory
=
Path
.
Combine
(
datapath
,
confcategory
);
confcover
=
Path
.
Combine
(
datapath
,
confcover
);
return
true
;
}
}
//初始化文件路径
void
DataEditFormFormClosing
(
object
sender
,
FormClosingEventArgs
e
)
void
InitPath(string datapath
)
{
{
conflang=Path.Combine(datapath, "language.txt");
confrule=Path.Combine(datapath, "card-rule.txt");
confattribute=Path.Combine(datapath, "card-attribute.txt");
confrace=Path.Combine(datapath, "card-race.txt");
conflevel=Path.Combine(datapath, "card-level.txt");
confsetname=Path.Combine(datapath, "card-setname.txt");
conftype=Path.Combine(datapath, "card-type.txt");
confcategory=Path.Combine(datapath, "card-category.txt");
confcover= Path.Combine(datapath, "cover.jpg");
}
}
//保存dic
void SaveDic(string file, Dictionary<long, string> dic)
void SaveDic(string file, Dictionary<long, string> dic)
{
{
using(FileStream fs=new FileStream(file,FileMode.OpenOrCreate,FileAccess.Write))
using(FileStream fs=new FileStream(file,FileMode.OpenOrCreate,FileAccess.Write))
...
@@ -186,7 +181,8 @@ void SaveDic(string file, Dictionary<long, string> dic)
...
@@ -186,7 +181,8 @@ void SaveDic(string file, Dictionary<long, string> dic)
}
}
}
}
public
void
InitForm
()
//初始化游戏数据
public void InitGameData()
{
{
//初始化
//初始化
dicCardRules=InitComboBox(cb_cardrule,confrule);
dicCardRules=InitComboBox(cb_cardrule,confrule);
...
@@ -208,13 +204,11 @@ public void InitForm()
...
@@ -208,13 +204,11 @@ public void InitForm()
InitCheckPanel(pl_category, dicCardcategorys);
InitCheckPanel(pl_category, dicCardcategorys);
//
//
if(File.Exists(confcover))
if(File.Exists(confcover))
{
m_cover=Image.FromFile(confcover);
m_cover=Image.FromFile(confcover);
}
else
else
m_cover=null;
m_cover=null;
InitString
();
}
}
//初始化FlowLayoutPanel
//初始化FlowLayoutPanel
void InitCheckPanel(FlowLayoutPanel fpanel, Dictionary<long, string> dic)
void InitCheckPanel(FlowLayoutPanel fpanel, Dictionary<long, string> dic)
{
{
...
@@ -312,6 +306,7 @@ void SetCard(Card c)
...
@@ -312,6 +306,7 @@ void SetCard(Card c)
pl_image.BackgroundImage=m_cover;
pl_image.BackgroundImage=m_cover;
}
}
//设置checkbox
string SetCheck(FlowLayoutPanel fpl,long number)
string SetCheck(FlowLayoutPanel fpl,long number)
{
{
long temp;
long temp;
...
@@ -335,6 +330,7 @@ string SetCheck(FlowLayoutPanel fpl,long number)
...
@@ -335,6 +330,7 @@ string SetCheck(FlowLayoutPanel fpl,long number)
return strType;
return strType;
}
}
//设置combobox
int SetSelect(Dictionary<long, string> dic,ComboBox cb, long k)
int SetSelect(Dictionary<long, string> dic,ComboBox cb, long k)
{
{
int index=0;
int index=0;
...
@@ -413,6 +409,7 @@ Card GetCard()
...
@@ -413,6 +409,7 @@ Card GetCard()
return c;
return c;
}
}
//得到所选值
string GetSelect(Dictionary<long, string> dic,ComboBox cb)
string GetSelect(Dictionary<long, string> dic,ComboBox cb)
{
{
long fkey=0;
long fkey=0;
...
@@ -433,6 +430,7 @@ string GetSelect(Dictionary<long, string> dic,ComboBox cb)
...
@@ -433,6 +430,7 @@ string GetSelect(Dictionary<long, string> dic,ComboBox cb)
return fkey.ToString();
return fkey.ToString();
}
}
//得到checkbox的总值
long GetCheck(FlowLayoutPanel fpl)
long GetCheck(FlowLayoutPanel fpl)
{
{
long number=0;
long number=0;
...
@@ -466,6 +464,7 @@ void Lv_cardlistSelectedIndexChanged(object sender, EventArgs e)
...
@@ -466,6 +464,7 @@ void Lv_cardlistSelectedIndexChanged(object sender, EventArgs e)
}
}
}
}
//添加行
void AddListView(int p)
void AddListView(int p)
{
{
int i,j,istart,iend;
int i,j,istart,iend;
...
@@ -503,16 +502,18 @@ void AddListView(int p)
...
@@ -503,16 +502,18 @@ void AddListView(int p)
}
}
//列表按键
void Lv_cardlistKeyDown(object sender, KeyEventArgs e)
void Lv_cardlistKeyDown(object sender, KeyEventArgs e)
{
{
switch(e.KeyCode)
switch(e.KeyCode)
{
{
case
Keys
.
Delete
:
MyMsg
.
Show
(
"del"
);
break
;
case Keys.Delete:
DelCards(
);break;
case Keys.Right:Btn_PageDownClick(null,null);break;
case Keys.Right:Btn_PageDownClick(null,null);break;
case Keys.Left:Btn_PageUpClick(null,null);break;
case Keys.Left:Btn_PageUpClick(null,null);break;
}
}
}
}
//上一页
void Btn_PageUpClick(object sender, EventArgs e)
void Btn_PageUpClick(object sender, EventArgs e)
{
{
if(!Check())
if(!Check())
...
@@ -521,6 +522,7 @@ void Btn_PageUpClick(object sender, EventArgs e)
...
@@ -521,6 +522,7 @@ void Btn_PageUpClick(object sender, EventArgs e)
AddListView(page);
AddListView(page);
}
}
//下一页
void Btn_PageDownClick(object sender, EventArgs e)
void Btn_PageDownClick(object sender, EventArgs e)
{
{
if(!Check())
if(!Check())
...
@@ -529,6 +531,7 @@ void Btn_PageDownClick(object sender, EventArgs e)
...
@@ -529,6 +531,7 @@ void Btn_PageDownClick(object sender, EventArgs e)
AddListView(page);
AddListView(page);
}
}
//跳转到指定页数
void Tb_pageKeyPress(object sender, KeyPressEventArgs e)
void Tb_pageKeyPress(object sender, KeyPressEventArgs e)
{
{
if(e.KeyChar==(char)Keys.Enter)
if(e.KeyChar==(char)Keys.Enter)
...
@@ -542,6 +545,7 @@ void Tb_pageKeyPress(object sender, KeyPressEventArgs e)
...
@@ -542,6 +545,7 @@ void Tb_pageKeyPress(object sender, KeyPressEventArgs e)
#endregion
#endregion
#region 卡片搜索,打开
#region 卡片搜索,打开
//检查是否打开数据库
public bool Check()
public bool Check()
{
{
if(File.Exists(nowCdbFile))
if(File.Exists(nowCdbFile))
...
@@ -553,6 +557,7 @@ public bool Check()
...
@@ -553,6 +557,7 @@ public bool Check()
}
}
}
}
//打开数据库
public bool Open(string cdbFile)
public bool Open(string cdbFile)
{
{
if(!File.Exists(cdbFile))
if(!File.Exists(cdbFile))
...
@@ -876,7 +881,6 @@ void Menuitem_aboutClick(object sender, EventArgs e)
...
@@ -876,7 +881,6 @@ void Menuitem_aboutClick(object sender, EventArgs e)
void Menuitem_checkupdateClick(object sender, EventArgs e)
void Menuitem_checkupdateClick(object sender, EventArgs e)
{
{
if(!backgroundWorker1.IsBusy)
if(!backgroundWorker1.IsBusy)
{
{
isdownload=false;
isdownload=false;
...
@@ -885,7 +889,6 @@ void Menuitem_checkupdateClick(object sender, EventArgs e)
...
@@ -885,7 +889,6 @@ void Menuitem_checkupdateClick(object sender, EventArgs e)
}
}
}
}
void Menuitem_githubClick(object sender, EventArgs e)
void Menuitem_githubClick(object sender, EventArgs e)
{
{
System.Diagnostics.Process.Start(ConfigurationManager.AppSettings["sourceURL"]);
System.Diagnostics.Process.Start(ConfigurationManager.AppSettings["sourceURL"]);
...
@@ -920,6 +923,7 @@ void Menuitem_newClick(object sender, EventArgs e)
...
@@ -920,6 +923,7 @@ void Menuitem_newClick(object sender, EventArgs e)
}
}
}
}
}
}
void Menuitem_copytoClick(object sender, EventArgs e)
void Menuitem_copytoClick(object sender, EventArgs e)
{
{
CopyTo(false);
CopyTo(false);
...
@@ -995,6 +999,7 @@ void Menuitem_quitClick(object sender, EventArgs e)
...
@@ -995,6 +999,7 @@ void Menuitem_quitClick(object sender, EventArgs e)
#endregion
#endregion
#region 线程
#region 线程
//线程任务
void BackgroundWorker1DoWork(object sender, System.ComponentModel.DoWorkEventArgs e)
void BackgroundWorker1DoWork(object sender, System.ComponentModel.DoWorkEventArgs e)
{
{
if(isdownload)
if(isdownload)
...
@@ -1004,7 +1009,7 @@ void BackgroundWorker1DoWork(object sender, System.ComponentModel.DoWorkEventArg
...
@@ -1004,7 +1009,7 @@ void BackgroundWorker1DoWork(object sender, System.ComponentModel.DoWorkEventArg
NEWVER=CheckUpdate.Check(ConfigurationManager.AppSettings["updateURL"]);
NEWVER=CheckUpdate.Check(ConfigurationManager.AppSettings["updateURL"]);
}
}
}
}
//任务完成
void BackgroundWorker1RunWorkerCompleted(object sender, System.ComponentModel.RunWorkerCompletedEventArgs e)
void BackgroundWorker1RunWorkerCompleted(object sender, System.ComponentModel.RunWorkerCompletedEventArgs e)
{
{
if(isdownload)
if(isdownload)
...
...
DataEditorX/Properties/AssemblyInfo.cs
View file @
636959c3
...
@@ -28,4 +28,4 @@
...
@@ -28,4 +28,4 @@
//
//
// You can specify all the values or you can use the default the Revision and
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
// Build Numbers by using the '*' as shown below:
[
assembly
:
AssemblyVersion
(
"1.3.2.
1
"
)]
[
assembly
:
AssemblyVersion
(
"1.3.2.
2
"
)]
DataEditorX/readme.txt
View file @
636959c3
[DataEditorX]1.3.2.
1
[DataEditorX]
[DataEditorX]1.3.2.
2
[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★卡片复制:
★卡片复制:
替换复制:如果存在卡片,就用最新的替换
替换复制:如果存在卡片,就用最新的替换
...
@@ -14,6 +14,8 @@
...
@@ -14,6 +14,8 @@
★更新历史
★更新历史
1.3.2.2
整理代码
1.3.2.1
1.3.2.1
完善language.txt
完善language.txt
1.3.2.0
1.3.2.0
...
...
win32/DataEditorX.exe
View file @
636959c3
No preview for this file type
win32/readme.txt
View file @
636959c3
[DataEditorX]1.3.2.
1
[DataEditorX]
[DataEditorX]1.3.2.
2
[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★卡片复制:
★卡片复制:
替换复制:如果存在卡片,就用最新的替换
替换复制:如果存在卡片,就用最新的替换
...
@@ -14,6 +14,8 @@
...
@@ -14,6 +14,8 @@
★更新历史
★更新历史
1.3.2.2
整理代码
1.3.2.1
1.3.2.1
完善language.txt
完善language.txt
1.3.2.0
1.3.2.0
...
...
win32/win32.zip
View file @
636959c3
No preview for this file type
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