Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
Kivii.Client.Sample.ImageUploader.V4.5
Project
Overview
Details
Activity
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
陶然
Kivii.Client.Sample.ImageUploader.V4.5
Commits
fcda55ca
Commit
fcda55ca
authored
Jun 25, 2024
by
陶然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
4cf4d563
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
29 deletions
+30
-29
FrmMain.Designer.cs
Src/FrmMain.Designer.cs
+24
-24
FrmMain.cs
Src/FrmMain.cs
+4
-3
AssemblyInfo.cs
Src/Properties/AssemblyInfo.cs
+2
-2
No files found.
Src/FrmMain.Designer.cs
View file @
fcda55ca
...
@@ -48,6 +48,7 @@
...
@@ -48,6 +48,7 @@
this
.
cbxResolution
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
cbxResolution
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
btnSwitch
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnSwitch
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
plVsp
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
plVsp
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
vspCamView
=
new
Kivii
.
Sample
.
ImageUploader
.
Controls
.
VideoSourcePlayer
();
this
.
plRight
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
plRight
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
gbPhotoList
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
gbPhotoList
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
flpPhotos
=
new
System
.
Windows
.
Forms
.
FlowLayoutPanel
();
this
.
flpPhotos
=
new
System
.
Windows
.
Forms
.
FlowLayoutPanel
();
...
@@ -56,6 +57,7 @@
...
@@ -56,6 +57,7 @@
this
.
plMain
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
plMain
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
gbPhotoView
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
gbPhotoView
=
new
System
.
Windows
.
Forms
.
GroupBox
();
this
.
panel1
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
panel1
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
picDisPlay
=
new
Kivii
.
Sample
.
ImageUploader
.
Controls
.
PanelEx
();
this
.
plDisplay
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
plDisplay
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
cbxTurn
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
cbxTurn
=
new
System
.
Windows
.
Forms
.
ComboBox
();
this
.
btnEditor
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnEditor
=
new
System
.
Windows
.
Forms
.
Button
();
...
@@ -65,8 +67,6 @@
...
@@ -65,8 +67,6 @@
this
.
btnShot
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnShot
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnCanon
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnCanon
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnDelete
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnDelete
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
picDisPlay
=
new
Kivii
.
Sample
.
ImageUploader
.
Controls
.
PanelEx
();
this
.
vspCamView
=
new
Kivii
.
Sample
.
ImageUploader
.
Controls
.
VideoSourcePlayer
();
this
.
plLeft
.
SuspendLayout
();
this
.
plLeft
.
SuspendLayout
();
this
.
gbSample
.
SuspendLayout
();
this
.
gbSample
.
SuspendLayout
();
this
.
plSearchReport
.
SuspendLayout
();
this
.
plSearchReport
.
SuspendLayout
();
...
@@ -319,6 +319,17 @@
...
@@ -319,6 +319,17 @@
this
.
plVsp
.
Size
=
new
System
.
Drawing
.
Size
(
370
,
350
);
this
.
plVsp
.
Size
=
new
System
.
Drawing
.
Size
(
370
,
350
);
this
.
plVsp
.
TabIndex
=
0
;
this
.
plVsp
.
TabIndex
=
0
;
//
//
// vspCamView
//
this
.
vspCamView
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
vspCamView
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
vspCamView
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
);
this
.
vspCamView
.
Name
=
"vspCamView"
;
this
.
vspCamView
.
Size
=
new
System
.
Drawing
.
Size
(
370
,
350
);
this
.
vspCamView
.
TabIndex
=
0
;
this
.
vspCamView
.
Text
=
"vspCamView"
;
this
.
vspCamView
.
VideoSource
=
null
;
//
// plRight
// plRight
//
//
this
.
plRight
.
Controls
.
Add
(
this
.
gbPhotoList
);
this
.
plRight
.
Controls
.
Add
(
this
.
gbPhotoList
);
...
@@ -420,6 +431,17 @@
...
@@ -420,6 +431,17 @@
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
804
,
831
);
this
.
panel1
.
Size
=
new
System
.
Drawing
.
Size
(
804
,
831
);
this
.
panel1
.
TabIndex
=
4
;
this
.
panel1
.
TabIndex
=
4
;
//
//
// picDisPlay
//
this
.
picDisPlay
.
BackgroundImageLayout
=
System
.
Windows
.
Forms
.
ImageLayout
.
Zoom
;
this
.
picDisPlay
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
picDisPlay
.
EnableSelection
=
false
;
this
.
picDisPlay
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
picDisPlay
.
Name
=
"picDisPlay"
;
this
.
picDisPlay
.
SelectionBounds
=
new
System
.
Drawing
.
Rectangle
(
0
,
0
,
0
,
0
);
this
.
picDisPlay
.
Size
=
new
System
.
Drawing
.
Size
(
804
,
831
);
this
.
picDisPlay
.
TabIndex
=
5
;
//
// plDisplay
// plDisplay
//
//
this
.
plDisplay
.
Controls
.
Add
(
this
.
cbxTurn
);
this
.
plDisplay
.
Controls
.
Add
(
this
.
cbxTurn
);
...
@@ -551,28 +573,6 @@
...
@@ -551,28 +573,6 @@
this
.
btnDelete
.
EnabledChanged
+=
new
System
.
EventHandler
(
this
.
btnEnabled_EnabledChanged
);
this
.
btnDelete
.
EnabledChanged
+=
new
System
.
EventHandler
(
this
.
btnEnabled_EnabledChanged
);
this
.
btnDelete
.
Click
+=
new
System
.
EventHandler
(
this
.
btnDelete_Click
);
this
.
btnDelete
.
Click
+=
new
System
.
EventHandler
(
this
.
btnDelete_Click
);
//
//
// picDisPlay
//
this
.
picDisPlay
.
BackgroundImageLayout
=
System
.
Windows
.
Forms
.
ImageLayout
.
Zoom
;
this
.
picDisPlay
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
picDisPlay
.
EnableSelection
=
false
;
this
.
picDisPlay
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
picDisPlay
.
Name
=
"picDisPlay"
;
this
.
picDisPlay
.
SelectionBounds
=
new
System
.
Drawing
.
Rectangle
(
0
,
0
,
0
,
0
);
this
.
picDisPlay
.
Size
=
new
System
.
Drawing
.
Size
(
804
,
831
);
this
.
picDisPlay
.
TabIndex
=
5
;
//
// vspCamView
//
this
.
vspCamView
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
vspCamView
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
0
);
this
.
vspCamView
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
4
);
this
.
vspCamView
.
Name
=
"vspCamView"
;
this
.
vspCamView
.
Size
=
new
System
.
Drawing
.
Size
(
370
,
350
);
this
.
vspCamView
.
TabIndex
=
0
;
this
.
vspCamView
.
Text
=
"vspCamView"
;
this
.
vspCamView
.
VideoSource
=
null
;
//
// FrmMain
// FrmMain
//
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
9F
,
18F
);
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
9F
,
18F
);
...
...
Src/FrmMain.cs
View file @
fcda55ca
...
@@ -711,10 +711,10 @@ namespace Kivii.Sample.ImageUploader
...
@@ -711,10 +711,10 @@ namespace Kivii.Sample.ImageUploader
MessageBox
.
Show
(
"登陆前先退出原连接"
);
MessageBox
.
Show
(
"登陆前先退出原连接"
);
return
;
return
;
}
}
btnLogin
.
Enabled
=
false
;
if
(
tbxServiceUrl
.
Text
.
IsNullOrEmpty
())
return
;
if
(
tbxServiceUrl
.
Text
.
IsNullOrEmpty
())
return
;
if
(
tbxUserName
.
Text
.
IsNullOrEmpty
())
return
;
if
(
tbxUserName
.
Text
.
IsNullOrEmpty
())
return
;
if
(
tbxPassword
.
Text
.
IsNullOrEmpty
())
return
;
if
(
tbxPassword
.
Text
.
IsNullOrEmpty
())
return
;
btnLogin
.
Enabled
=
false
;
_client
=
new
JsonServiceClient
(
tbxServiceUrl
.
Text
);
_client
=
new
JsonServiceClient
(
tbxServiceUrl
.
Text
);
var
auth
=
new
Authenticate
{
UserName
=
tbxUserName
.
Text
,
Password
=
tbxPassword
.
Text
,
provider
=
"Kivii"
};
var
auth
=
new
Authenticate
{
UserName
=
tbxUserName
.
Text
,
Password
=
tbxPassword
.
Text
,
provider
=
"Kivii"
};
var
task
=
_client
.
PostAsync
(
auth
);
var
task
=
_client
.
PostAsync
(
auth
);
...
@@ -1033,10 +1033,11 @@ namespace Kivii.Sample.ImageUploader
...
@@ -1033,10 +1033,11 @@ namespace Kivii.Sample.ImageUploader
private
void
CanonForm_DownloadCompletely
(
object
sender
,
EventArgs
e
)
private
void
CanonForm_DownloadCompletely
(
object
sender
,
EventArgs
e
)
{
{
var
stream
=
(
Stream
)
sender
;
var
stream
=
(
Stream
)
sender
;
var
mStream
=
new
MemoryStream
();
stream
.
CopyTo
(
mStream
);
//FileInfo fileInfo = new FileInfo(stream);
//FileInfo fileInfo = new FileInfo(stream);
// 捕获当前帧
// 捕获当前帧
Bitmap
bitmap
=
new
Bitmap
(
s
tream
);
Bitmap
bitmap
=
new
Bitmap
(
mS
tream
);
if
(
bitmap
==
null
)
return
;
if
(
bitmap
==
null
)
return
;
var
picName
=
$"
{
DateTime
.
Now
.
ToString
(
"mmssfff"
)}
"
;
var
picName
=
$"
{
DateTime
.
Now
.
ToString
(
"mmssfff"
)}
"
;
string
reportId
=
string
.
Empty
;
string
reportId
=
string
.
Empty
;
...
...
Src/Properties/AssemblyInfo.cs
View file @
fcda55ca
...
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
...
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.4.2024.6
04
0")]
[assembly: AssemblyVersion("5.4.2024.6
25
0")]
[assembly: AssemblyFileVersion("5.4.2024.6
04
0")]
[assembly: AssemblyFileVersion("5.4.2024.6
25
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