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
1
Issues
1
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
nanahira
DataEditorX
Commits
cda3ef29
Commit
cda3ef29
authored
Jun 06, 2017
by
keyongyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
行数
parent
95f2a556
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
DataEditorX/DataEditForm.cs
DataEditorX/DataEditForm.cs
+8
-6
No files found.
DataEditorX/DataEditForm.cs
View file @
cda3ef29
...
...
@@ -354,21 +354,23 @@ void InitListRows()
item
.
Text
=
"Test"
;
lv_cardlist
.
Items
.
Add
(
item
);
}
int
headH
=
lv_cardlist
.
Items
[
0
].
GetBounds
(
ItemBoundsPortion
.
ItemOnly
).
Y
;
int
itemH
=
lv_cardlist
.
Items
[
0
].
GetBounds
(
ItemBoundsPortion
.
ItemOnly
).
Height
;
if
(
itemH
>
0
)
{
int
n
=
(
lv_cardlist
.
Height
-
headH
)
/
itemH
;
int
n
=
lv_cardlist
.
Height
/
itemH
;
if
(
n
>
0
){
MaxRow
=
n
;
}
//MessageBox.Show("height="+lv_cardlist.Height+",item="+itemH+",head="+headH+",max="+MaxRow);
//MessageBox.Show("height="+lv_cardlist.Height+",item="+itemH+",max="+MaxRow);
}
if
(
MaxRow
<
1
){
MaxRow
=
1
;
}
if
(
addTest
){
lv_cardlist
.
Items
.
Clear
();
}
else
{
Search
(
true
);
}
if
(
MaxRow
<
10
)
MaxRow
=
20
;
}
//设置checkbox
void
SetCheck
(
FlowLayoutPanel
fpl
,
long
number
)
...
...
@@ -738,7 +740,7 @@ public void SetCards(Card[] cards, bool isfresh)
tb_pagenum
.
Text
=
pageNum
.
ToString
();
if
(
isfresh
)
//是否跳到之前页数
AddListView
(
page
);
AddListView
(
Math
.
Min
(
page
,
pageNum
)
);
else
AddListView
(
1
);
}
...
...
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