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
bf666c10
Commit
bf666c10
authored
Jun 09, 2020
by
JoyJ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...历 史 遗 留 问 题
parent
5c237791
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
89 deletions
+4
-89
DataEditorX/DataEditForm.cs
DataEditorX/DataEditForm.cs
+4
-89
No files found.
DataEditorX/DataEditForm.cs
View file @
bf666c10
...
...
@@ -308,109 +308,31 @@ void InitPath(string datapath)
//初始化控件
public
void
InitControl
(
DataConfig
datacfg
)
{
//为了进行错误定位而进行改造 190324 by JoyJ
if
(
datacfg
==
null
)
{
return
;
}
List
<
long
>
setcodes
=
DataManager
.
GetKeys
(
datacfg
.
dicSetnames
);
string
[]
setnames
=
DataManager
.
GetValues
(
datacfg
.
dicSetnames
);
try
{
this
.
InitComboBox
(
this
.
cb_cardrace
,
datacfg
.
dicCardRaces
);
}
catch
(
Exception
ex
)
{
MessageBox
.
Show
(
ex
.
ToString
(),
"启动错误-cb_cardrace"
);
}
try
{
this
.
InitComboBox
(
this
.
cb_cardattribute
,
datacfg
.
dicCardAttributes
);
}
catch
(
Exception
ex
)
{
MessageBox
.
Show
(
ex
.
ToString
(),
"启动错误-cb_cardattribute"
);
}
try
{
this
.
InitComboBox
(
this
.
cb_cardrule
,
datacfg
.
dicCardRules
);
}
catch
(
Exception
ex
)
{
MessageBox
.
Show
(
ex
.
ToString
(),
"启动错误-cb_cardrule"
);
}
try
{
this
.
InitComboBox
(
this
.
cb_cardlevel
,
datacfg
.
dicCardLevels
);
}
catch
(
Exception
ex
)
{
MessageBox
.
Show
(
ex
.
ToString
(),
"启动错误-cb_cardlevel"
);
}
try
{
this
.
InitCheckPanel
(
this
.
pl_cardtype
,
datacfg
.
dicCardTypes
);
}
catch
(
Exception
ex
)
{
MessageBox
.
Show
(
ex
.
ToString
(),
"启动错误-pl_cardtype"
);
}
try
{
this
.
InitCheckPanel
(
this
.
pl_markers
,
datacfg
.
dicLinkMarkers
);
}
catch
(
Exception
ex
)
{
MessageBox
.
Show
(
ex
.
ToString
(),
"启动错误-pl_markers"
);
}
try
{
this
.
InitCheckPanel
(
this
.
pl_category
,
datacfg
.
dicCardcategorys
);
}
catch
(
Exception
ex
)
{
MessageBox
.
Show
(
ex
.
ToString
(),
"启动错误-pl_category"
);
}
try
{
this
.
SetEnabled
(
this
.
pl_markers
,
false
);
}
catch
(
Exception
ex
)
{
MessageBox
.
Show
(
ex
.
ToString
(),
"启动错误-pl_markers"
);
}
List
<
long
>
setcodes
=
DataManager
.
GetKeys
(
datacfg
.
dicSetnames
);
string
[]
setnames
=
DataManager
.
GetValues
(
datacfg
.
dicSetnames
);
try
{
this
.
InitComboBox
(
this
.
cb_setname1
,
setcodes
,
setnames
);
}
catch
(
Exception
ex
)
{
MessageBox
.
Show
(
ex
.
ToString
(),
"启动错误-cb_setname1"
);
}
try
{
this
.
InitComboBox
(
this
.
cb_setname2
,
setcodes
,
setnames
);
}
catch
(
Exception
ex
)
{
MessageBox
.
Show
(
ex
.
ToString
(),
"启动错误-cb_setname2"
);
}
try
{
this
.
InitComboBox
(
this
.
cb_setname3
,
setcodes
,
setnames
);
}
catch
(
Exception
ex
)
{
MessageBox
.
Show
(
ex
.
ToString
(),
"启动错误-cb_setname3"
);
}
try
{
this
.
InitComboBox
(
this
.
cb_setname4
,
setcodes
,
setnames
);
}
catch
(
Exception
ex
)
{
MessageBox
.
Show
(
ex
.
ToString
(),
"启动错误
-cb_setname4
"
);
MessageBox
.
Show
(
ex
.
ToString
(),
"启动错误"
);
}
}
//初始化FlowLayoutPanel
...
...
@@ -440,7 +362,6 @@ void InitCheckPanel(FlowLayoutPanel fpanel, Dictionary<long, string> dic)
AutoSize
=
true
,
Margin
=
fpanel
.
Margin
};
_cbox
.
CheckedChanged
+=
this
.
_cbox_CheckedChanged
;
//_cbox.Click += PanelOnCheckClick;
fpanel
.
Controls
.
Add
(
_cbox
);
}
...
...
@@ -449,11 +370,6 @@ void InitCheckPanel(FlowLayoutPanel fpanel, Dictionary<long, string> dic)
fpanel
.
PerformLayout
();
}
private
void
_cbox_CheckedChanged
(
object
sender
,
EventArgs
e
)
{
}
//初始化ComboBox
void
InitComboBox
(
ComboBox
cb
,
Dictionary
<
long
,
string
>
tempdic
)
{
...
...
@@ -465,7 +381,6 @@ void InitComboBox(ComboBox cb, List<long> keys, string[] values)
{
cb
.
Items
.
Clear
();
cb
.
Tag
=
keys
;
//Improve 190324 by JoyJ
cb
.
Items
.
AddRange
(
values
);
if
(
cb
.
Items
.
Count
>
0
)
{
...
...
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