Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CS-LibDiveComputer
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vincent
CS-LibDiveComputer
Commits
78ba2f17
Commit
78ba2f17
authored
Dec 26, 2017
by
Vincent
💩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Working on Dive Selector
parent
5b162777
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
Form1.cs
DiveLogUploader/Form1.cs
+13
-5
No files found.
DiveLogUploader/Form1.cs
View file @
78ba2f17
...
...
@@ -221,11 +221,7 @@ namespace divecomputer_test {
SetReadProgress
(
100
,
true
);
if
(!
writeAll
)
{
DiveSelector
.
Show
();
DiveSelector
.
SetDives
(
allDives
);
DiveSelector
.
OnDone
+=
(
source
,
a
)
=>
{
Console
.
WriteLine
(
a
);
};
SelectDives
(
allDives
);
}
else
{
writer
.
End
();
...
...
@@ -244,6 +240,18 @@ namespace divecomputer_test {
SetWriteProgress
(
100
,
false
);
}
private
void
SelectDives
(
List
<
Dive
>
d
)
{
if
(
InvokeRequired
)
{
Invoke
(
new
Action
(()
=>
{
SelectDives
(
d
);
}));
}
else
{
DiveSelector
.
Show
();
DiveSelector
.
SetDives
(
d
);
DiveSelector
.
OnDone
+=
(
source
,
a
)
=>
{
Console
.
WriteLine
(
a
);
};
}
}
private
void
DivecomputerWorker_RunWorkerCompleted
(
object
sender
,
RunWorkerCompletedEventArgs
e
)
{
Invoke
(
new
Action
(()
=>
{
if
(
currentTask
.
ctx
!=
null
)
currentTask
.
ctx
.
Dispose
();
...
...
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