Commit e124ac10 by 陶然

优化相机拍照后文件下载问题

parent 5c0f6133
...@@ -89,8 +89,9 @@ ...@@ -89,8 +89,9 @@
this.plLeft.Controls.Add(this.gbCamView); this.plLeft.Controls.Add(this.gbCamView);
this.plLeft.Dock = System.Windows.Forms.DockStyle.Left; this.plLeft.Dock = System.Windows.Forms.DockStyle.Left;
this.plLeft.Location = new System.Drawing.Point(0, 0); this.plLeft.Location = new System.Drawing.Point(0, 0);
this.plLeft.Margin = new System.Windows.Forms.Padding(4);
this.plLeft.Name = "plLeft"; this.plLeft.Name = "plLeft";
this.plLeft.Size = new System.Drawing.Size(252, 681); this.plLeft.Size = new System.Drawing.Size(378, 1022);
this.plLeft.TabIndex = 0; this.plLeft.TabIndex = 0;
// //
// gbSample // gbSample
...@@ -98,9 +99,11 @@ ...@@ -98,9 +99,11 @@
this.gbSample.Controls.Add(this.rtbMessage); this.gbSample.Controls.Add(this.rtbMessage);
this.gbSample.Controls.Add(this.plSearchReport); this.gbSample.Controls.Add(this.plSearchReport);
this.gbSample.Dock = System.Windows.Forms.DockStyle.Fill; this.gbSample.Dock = System.Windows.Forms.DockStyle.Fill;
this.gbSample.Location = new System.Drawing.Point(0, 282); this.gbSample.Location = new System.Drawing.Point(0, 423);
this.gbSample.Margin = new System.Windows.Forms.Padding(4);
this.gbSample.Name = "gbSample"; this.gbSample.Name = "gbSample";
this.gbSample.Size = new System.Drawing.Size(252, 237); this.gbSample.Padding = new System.Windows.Forms.Padding(4);
this.gbSample.Size = new System.Drawing.Size(378, 356);
this.gbSample.TabIndex = 3; this.gbSample.TabIndex = 3;
this.gbSample.TabStop = false; this.gbSample.TabStop = false;
this.gbSample.Text = "查询样品"; this.gbSample.Text = "查询样品";
...@@ -109,10 +112,9 @@ ...@@ -109,10 +112,9 @@
// //
this.rtbMessage.Dock = System.Windows.Forms.DockStyle.Fill; this.rtbMessage.Dock = System.Windows.Forms.DockStyle.Fill;
this.rtbMessage.Font = new System.Drawing.Font("宋体", 14F); this.rtbMessage.Font = new System.Drawing.Font("宋体", 14F);
this.rtbMessage.Location = new System.Drawing.Point(3, 54); this.rtbMessage.Location = new System.Drawing.Point(4, 81);
this.rtbMessage.Margin = new System.Windows.Forms.Padding(2);
this.rtbMessage.Name = "rtbMessage"; this.rtbMessage.Name = "rtbMessage";
this.rtbMessage.Size = new System.Drawing.Size(246, 180); this.rtbMessage.Size = new System.Drawing.Size(370, 271);
this.rtbMessage.TabIndex = 20; this.rtbMessage.TabIndex = 20;
this.rtbMessage.Text = ""; this.rtbMessage.Text = "";
// //
...@@ -121,9 +123,10 @@ ...@@ -121,9 +123,10 @@
this.plSearchReport.Controls.Add(this.tbxReportId); this.plSearchReport.Controls.Add(this.tbxReportId);
this.plSearchReport.Controls.Add(this.btnReportId); this.plSearchReport.Controls.Add(this.btnReportId);
this.plSearchReport.Dock = System.Windows.Forms.DockStyle.Top; this.plSearchReport.Dock = System.Windows.Forms.DockStyle.Top;
this.plSearchReport.Location = new System.Drawing.Point(3, 17); this.plSearchReport.Location = new System.Drawing.Point(4, 25);
this.plSearchReport.Margin = new System.Windows.Forms.Padding(4);
this.plSearchReport.Name = "plSearchReport"; this.plSearchReport.Name = "plSearchReport";
this.plSearchReport.Size = new System.Drawing.Size(246, 37); this.plSearchReport.Size = new System.Drawing.Size(370, 56);
this.plSearchReport.TabIndex = 19; this.plSearchReport.TabIndex = 19;
// //
// tbxReportId // tbxReportId
...@@ -131,9 +134,10 @@ ...@@ -131,9 +134,10 @@
this.tbxReportId.Dock = System.Windows.Forms.DockStyle.Fill; this.tbxReportId.Dock = System.Windows.Forms.DockStyle.Fill;
this.tbxReportId.Font = new System.Drawing.Font("宋体", 12F); this.tbxReportId.Font = new System.Drawing.Font("宋体", 12F);
this.tbxReportId.Location = new System.Drawing.Point(0, 0); this.tbxReportId.Location = new System.Drawing.Point(0, 0);
this.tbxReportId.Margin = new System.Windows.Forms.Padding(4);
this.tbxReportId.Multiline = true; this.tbxReportId.Multiline = true;
this.tbxReportId.Name = "tbxReportId"; this.tbxReportId.Name = "tbxReportId";
this.tbxReportId.Size = new System.Drawing.Size(187, 37); this.tbxReportId.Size = new System.Drawing.Size(282, 56);
this.tbxReportId.TabIndex = 7; this.tbxReportId.TabIndex = 7;
this.tbxReportId.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.tbxReportId_KeyPress); this.tbxReportId.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.tbxReportId_KeyPress);
// //
...@@ -142,9 +146,10 @@ ...@@ -142,9 +146,10 @@
this.btnReportId.BackColor = System.Drawing.SystemColors.ButtonHighlight; this.btnReportId.BackColor = System.Drawing.SystemColors.ButtonHighlight;
this.btnReportId.Dock = System.Windows.Forms.DockStyle.Right; this.btnReportId.Dock = System.Windows.Forms.DockStyle.Right;
this.btnReportId.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnReportId.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnReportId.Location = new System.Drawing.Point(187, 0); this.btnReportId.Location = new System.Drawing.Point(282, 0);
this.btnReportId.Margin = new System.Windows.Forms.Padding(4);
this.btnReportId.Name = "btnReportId"; this.btnReportId.Name = "btnReportId";
this.btnReportId.Size = new System.Drawing.Size(59, 37); this.btnReportId.Size = new System.Drawing.Size(88, 56);
this.btnReportId.TabIndex = 8; this.btnReportId.TabIndex = 8;
this.btnReportId.Text = "查询"; this.btnReportId.Text = "查询";
this.btnReportId.UseVisualStyleBackColor = false; this.btnReportId.UseVisualStyleBackColor = false;
...@@ -161,9 +166,11 @@ ...@@ -161,9 +166,11 @@
this.gbLogin.Controls.Add(this.tbxServiceUrl); this.gbLogin.Controls.Add(this.tbxServiceUrl);
this.gbLogin.Controls.Add(this.lblUrl); this.gbLogin.Controls.Add(this.lblUrl);
this.gbLogin.Dock = System.Windows.Forms.DockStyle.Bottom; this.gbLogin.Dock = System.Windows.Forms.DockStyle.Bottom;
this.gbLogin.Location = new System.Drawing.Point(0, 519); this.gbLogin.Location = new System.Drawing.Point(0, 779);
this.gbLogin.Margin = new System.Windows.Forms.Padding(4);
this.gbLogin.Name = "gbLogin"; this.gbLogin.Name = "gbLogin";
this.gbLogin.Size = new System.Drawing.Size(252, 162); this.gbLogin.Padding = new System.Windows.Forms.Padding(4);
this.gbLogin.Size = new System.Drawing.Size(378, 243);
this.gbLogin.TabIndex = 2; this.gbLogin.TabIndex = 2;
this.gbLogin.TabStop = false; this.gbLogin.TabStop = false;
this.gbLogin.Text = "系统登录"; this.gbLogin.Text = "系统登录";
...@@ -173,9 +180,10 @@ ...@@ -173,9 +180,10 @@
this.btnLogout.BackColor = System.Drawing.Color.LavenderBlush; this.btnLogout.BackColor = System.Drawing.Color.LavenderBlush;
this.btnLogout.Font = new System.Drawing.Font("宋体", 15F); this.btnLogout.Font = new System.Drawing.Font("宋体", 15F);
this.btnLogout.ForeColor = System.Drawing.Color.Crimson; this.btnLogout.ForeColor = System.Drawing.Color.Crimson;
this.btnLogout.Location = new System.Drawing.Point(147, 114); this.btnLogout.Location = new System.Drawing.Point(220, 171);
this.btnLogout.Margin = new System.Windows.Forms.Padding(4);
this.btnLogout.Name = "btnLogout"; this.btnLogout.Name = "btnLogout";
this.btnLogout.Size = new System.Drawing.Size(96, 40); this.btnLogout.Size = new System.Drawing.Size(144, 60);
this.btnLogout.TabIndex = 31; this.btnLogout.TabIndex = 31;
this.btnLogout.Text = "退 出"; this.btnLogout.Text = "退 出";
this.btnLogout.UseVisualStyleBackColor = false; this.btnLogout.UseVisualStyleBackColor = false;
...@@ -186,9 +194,10 @@ ...@@ -186,9 +194,10 @@
this.btnLogin.BackColor = System.Drawing.Color.MintCream; this.btnLogin.BackColor = System.Drawing.Color.MintCream;
this.btnLogin.Font = new System.Drawing.Font("宋体", 15F); this.btnLogin.Font = new System.Drawing.Font("宋体", 15F);
this.btnLogin.ForeColor = System.Drawing.Color.DarkGreen; this.btnLogin.ForeColor = System.Drawing.Color.DarkGreen;
this.btnLogin.Location = new System.Drawing.Point(3, 113); this.btnLogin.Location = new System.Drawing.Point(4, 170);
this.btnLogin.Margin = new System.Windows.Forms.Padding(4);
this.btnLogin.Name = "btnLogin"; this.btnLogin.Name = "btnLogin";
this.btnLogin.Size = new System.Drawing.Size(136, 40); this.btnLogin.Size = new System.Drawing.Size(204, 60);
this.btnLogin.TabIndex = 30; this.btnLogin.TabIndex = 30;
this.btnLogin.Text = "登 录"; this.btnLogin.Text = "登 录";
this.btnLogin.UseVisualStyleBackColor = false; this.btnLogin.UseVisualStyleBackColor = false;
...@@ -197,10 +206,11 @@ ...@@ -197,10 +206,11 @@
// tbxPassword // tbxPassword
// //
this.tbxPassword.Font = new System.Drawing.Font("宋体", 12F); this.tbxPassword.Font = new System.Drawing.Font("宋体", 12F);
this.tbxPassword.Location = new System.Drawing.Point(64, 78); this.tbxPassword.Location = new System.Drawing.Point(96, 117);
this.tbxPassword.Margin = new System.Windows.Forms.Padding(4);
this.tbxPassword.Name = "tbxPassword"; this.tbxPassword.Name = "tbxPassword";
this.tbxPassword.PasswordChar = '*'; this.tbxPassword.PasswordChar = '*';
this.tbxPassword.Size = new System.Drawing.Size(179, 26); this.tbxPassword.Size = new System.Drawing.Size(266, 35);
this.tbxPassword.TabIndex = 29; this.tbxPassword.TabIndex = 29;
this.tbxPassword.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.tbxPassword_KeyPress); this.tbxPassword.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.tbxPassword_KeyPress);
// //
...@@ -208,27 +218,30 @@ ...@@ -208,27 +218,30 @@
// //
this.lblPassword.AutoSize = true; this.lblPassword.AutoSize = true;
this.lblPassword.Font = new System.Drawing.Font("宋体", 12F); this.lblPassword.Font = new System.Drawing.Font("宋体", 12F);
this.lblPassword.Location = new System.Drawing.Point(2, 81); this.lblPassword.Location = new System.Drawing.Point(3, 122);
this.lblPassword.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lblPassword.Name = "lblPassword"; this.lblPassword.Name = "lblPassword";
this.lblPassword.Size = new System.Drawing.Size(63, 16); this.lblPassword.Size = new System.Drawing.Size(94, 24);
this.lblPassword.TabIndex = 28; this.lblPassword.TabIndex = 28;
this.lblPassword.Text = "密 码:"; this.lblPassword.Text = "密 码:";
// //
// tbxUserName // tbxUserName
// //
this.tbxUserName.Font = new System.Drawing.Font("宋体", 12F); this.tbxUserName.Font = new System.Drawing.Font("宋体", 12F);
this.tbxUserName.Location = new System.Drawing.Point(64, 46); this.tbxUserName.Location = new System.Drawing.Point(96, 69);
this.tbxUserName.Margin = new System.Windows.Forms.Padding(4);
this.tbxUserName.Name = "tbxUserName"; this.tbxUserName.Name = "tbxUserName";
this.tbxUserName.Size = new System.Drawing.Size(179, 26); this.tbxUserName.Size = new System.Drawing.Size(266, 35);
this.tbxUserName.TabIndex = 27; this.tbxUserName.TabIndex = 27;
// //
// lblUser // lblUser
// //
this.lblUser.AutoSize = true; this.lblUser.AutoSize = true;
this.lblUser.Font = new System.Drawing.Font("宋体", 12F); this.lblUser.Font = new System.Drawing.Font("宋体", 12F);
this.lblUser.Location = new System.Drawing.Point(2, 49); this.lblUser.Location = new System.Drawing.Point(3, 74);
this.lblUser.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lblUser.Name = "lblUser"; this.lblUser.Name = "lblUser";
this.lblUser.Size = new System.Drawing.Size(63, 16); this.lblUser.Size = new System.Drawing.Size(94, 24);
this.lblUser.TabIndex = 26; this.lblUser.TabIndex = 26;
this.lblUser.Text = "用户名:"; this.lblUser.Text = "用户名:";
// //
...@@ -236,18 +249,20 @@ ...@@ -236,18 +249,20 @@
// //
this.tbxServiceUrl.BackColor = System.Drawing.SystemColors.Window; this.tbxServiceUrl.BackColor = System.Drawing.SystemColors.Window;
this.tbxServiceUrl.Font = new System.Drawing.Font("宋体", 12F); this.tbxServiceUrl.Font = new System.Drawing.Font("宋体", 12F);
this.tbxServiceUrl.Location = new System.Drawing.Point(64, 14); this.tbxServiceUrl.Location = new System.Drawing.Point(96, 21);
this.tbxServiceUrl.Margin = new System.Windows.Forms.Padding(4);
this.tbxServiceUrl.Name = "tbxServiceUrl"; this.tbxServiceUrl.Name = "tbxServiceUrl";
this.tbxServiceUrl.Size = new System.Drawing.Size(179, 26); this.tbxServiceUrl.Size = new System.Drawing.Size(266, 35);
this.tbxServiceUrl.TabIndex = 25; this.tbxServiceUrl.TabIndex = 25;
// //
// lblUrl // lblUrl
// //
this.lblUrl.AutoSize = true; this.lblUrl.AutoSize = true;
this.lblUrl.Font = new System.Drawing.Font("宋体", 12F); this.lblUrl.Font = new System.Drawing.Font("宋体", 12F);
this.lblUrl.Location = new System.Drawing.Point(2, 17); this.lblUrl.Location = new System.Drawing.Point(3, 26);
this.lblUrl.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lblUrl.Name = "lblUrl"; this.lblUrl.Name = "lblUrl";
this.lblUrl.Size = new System.Drawing.Size(63, 16); this.lblUrl.Size = new System.Drawing.Size(94, 24);
this.lblUrl.TabIndex = 22; this.lblUrl.TabIndex = 22;
this.lblUrl.Text = "地 址:"; this.lblUrl.Text = "地 址:";
// //
...@@ -259,8 +274,10 @@ ...@@ -259,8 +274,10 @@
this.gbCamView.Dock = System.Windows.Forms.DockStyle.Top; this.gbCamView.Dock = System.Windows.Forms.DockStyle.Top;
this.gbCamView.Font = new System.Drawing.Font("宋体", 10F); this.gbCamView.Font = new System.Drawing.Font("宋体", 10F);
this.gbCamView.Location = new System.Drawing.Point(0, 0); this.gbCamView.Location = new System.Drawing.Point(0, 0);
this.gbCamView.Margin = new System.Windows.Forms.Padding(4);
this.gbCamView.Name = "gbCamView"; this.gbCamView.Name = "gbCamView";
this.gbCamView.Size = new System.Drawing.Size(252, 282); this.gbCamView.Padding = new System.Windows.Forms.Padding(4);
this.gbCamView.Size = new System.Drawing.Size(378, 423);
this.gbCamView.TabIndex = 0; this.gbCamView.TabIndex = 0;
this.gbCamView.TabStop = false; this.gbCamView.TabStop = false;
this.gbCamView.Text = "相机视图"; this.gbCamView.Text = "相机视图";
...@@ -270,9 +287,10 @@ ...@@ -270,9 +287,10 @@
this.cbxResolution.Dock = System.Windows.Forms.DockStyle.Fill; this.cbxResolution.Dock = System.Windows.Forms.DockStyle.Fill;
this.cbxResolution.Font = new System.Drawing.Font("宋体", 18F); this.cbxResolution.Font = new System.Drawing.Font("宋体", 18F);
this.cbxResolution.FormattingEnabled = true; this.cbxResolution.FormattingEnabled = true;
this.cbxResolution.Location = new System.Drawing.Point(3, 252); this.cbxResolution.Location = new System.Drawing.Point(4, 377);
this.cbxResolution.Margin = new System.Windows.Forms.Padding(4);
this.cbxResolution.Name = "cbxResolution"; this.cbxResolution.Name = "cbxResolution";
this.cbxResolution.Size = new System.Drawing.Size(187, 32); this.cbxResolution.Size = new System.Drawing.Size(282, 44);
this.cbxResolution.TabIndex = 5; this.cbxResolution.TabIndex = 5;
this.cbxResolution.SelectedIndexChanged += new System.EventHandler(this.cbxResolution_SelectedIndexChanged); this.cbxResolution.SelectedIndexChanged += new System.EventHandler(this.cbxResolution_SelectedIndexChanged);
// //
...@@ -281,9 +299,10 @@ ...@@ -281,9 +299,10 @@
this.btnSwitch.BackColor = System.Drawing.SystemColors.ButtonHighlight; this.btnSwitch.BackColor = System.Drawing.SystemColors.ButtonHighlight;
this.btnSwitch.Dock = System.Windows.Forms.DockStyle.Right; this.btnSwitch.Dock = System.Windows.Forms.DockStyle.Right;
this.btnSwitch.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnSwitch.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSwitch.Location = new System.Drawing.Point(190, 252); this.btnSwitch.Location = new System.Drawing.Point(286, 377);
this.btnSwitch.Margin = new System.Windows.Forms.Padding(4);
this.btnSwitch.Name = "btnSwitch"; this.btnSwitch.Name = "btnSwitch";
this.btnSwitch.Size = new System.Drawing.Size(59, 27); this.btnSwitch.Size = new System.Drawing.Size(88, 42);
this.btnSwitch.TabIndex = 4; this.btnSwitch.TabIndex = 4;
this.btnSwitch.Text = "切换"; this.btnSwitch.Text = "切换";
this.btnSwitch.UseVisualStyleBackColor = false; this.btnSwitch.UseVisualStyleBackColor = false;
...@@ -293,17 +312,19 @@ ...@@ -293,17 +312,19 @@
// //
this.plVsp.Controls.Add(this.vspCamView); this.plVsp.Controls.Add(this.vspCamView);
this.plVsp.Dock = System.Windows.Forms.DockStyle.Top; this.plVsp.Dock = System.Windows.Forms.DockStyle.Top;
this.plVsp.Location = new System.Drawing.Point(3, 19); this.plVsp.Location = new System.Drawing.Point(4, 27);
this.plVsp.Margin = new System.Windows.Forms.Padding(4);
this.plVsp.Name = "plVsp"; this.plVsp.Name = "plVsp";
this.plVsp.Size = new System.Drawing.Size(246, 233); this.plVsp.Size = new System.Drawing.Size(370, 350);
this.plVsp.TabIndex = 0; this.plVsp.TabIndex = 0;
// //
// vspCamView // vspCamView
// //
this.vspCamView.Dock = System.Windows.Forms.DockStyle.Fill; this.vspCamView.Dock = System.Windows.Forms.DockStyle.Fill;
this.vspCamView.Location = new System.Drawing.Point(0, 0); this.vspCamView.Location = new System.Drawing.Point(0, 0);
this.vspCamView.Margin = new System.Windows.Forms.Padding(4);
this.vspCamView.Name = "vspCamView"; this.vspCamView.Name = "vspCamView";
this.vspCamView.Size = new System.Drawing.Size(246, 233); this.vspCamView.Size = new System.Drawing.Size(370, 350);
this.vspCamView.TabIndex = 0; this.vspCamView.TabIndex = 0;
this.vspCamView.Text = "vspCamView"; this.vspCamView.Text = "vspCamView";
this.vspCamView.VideoSource = null; this.vspCamView.VideoSource = null;
...@@ -313,9 +334,10 @@ ...@@ -313,9 +334,10 @@
this.plRight.Controls.Add(this.gbPhotoList); this.plRight.Controls.Add(this.gbPhotoList);
this.plRight.Controls.Add(this.gbUploading); this.plRight.Controls.Add(this.gbUploading);
this.plRight.Dock = System.Windows.Forms.DockStyle.Right; this.plRight.Dock = System.Windows.Forms.DockStyle.Right;
this.plRight.Location = new System.Drawing.Point(793, 0); this.plRight.Location = new System.Drawing.Point(1190, 0);
this.plRight.Margin = new System.Windows.Forms.Padding(4);
this.plRight.Name = "plRight"; this.plRight.Name = "plRight";
this.plRight.Size = new System.Drawing.Size(151, 681); this.plRight.Size = new System.Drawing.Size(226, 1022);
this.plRight.TabIndex = 1; this.plRight.TabIndex = 1;
// //
// gbPhotoList // gbPhotoList
...@@ -324,8 +346,10 @@ ...@@ -324,8 +346,10 @@
this.gbPhotoList.Dock = System.Windows.Forms.DockStyle.Fill; this.gbPhotoList.Dock = System.Windows.Forms.DockStyle.Fill;
this.gbPhotoList.Font = new System.Drawing.Font("宋体", 10F); this.gbPhotoList.Font = new System.Drawing.Font("宋体", 10F);
this.gbPhotoList.Location = new System.Drawing.Point(0, 0); this.gbPhotoList.Location = new System.Drawing.Point(0, 0);
this.gbPhotoList.Margin = new System.Windows.Forms.Padding(4);
this.gbPhotoList.Name = "gbPhotoList"; this.gbPhotoList.Name = "gbPhotoList";
this.gbPhotoList.Size = new System.Drawing.Size(151, 602); this.gbPhotoList.Padding = new System.Windows.Forms.Padding(4);
this.gbPhotoList.Size = new System.Drawing.Size(226, 904);
this.gbPhotoList.TabIndex = 2; this.gbPhotoList.TabIndex = 2;
this.gbPhotoList.TabStop = false; this.gbPhotoList.TabStop = false;
this.gbPhotoList.Text = "已拍照片"; this.gbPhotoList.Text = "已拍照片";
...@@ -336,19 +360,21 @@ ...@@ -336,19 +360,21 @@
this.flpPhotos.BackColor = System.Drawing.SystemColors.ButtonHighlight; this.flpPhotos.BackColor = System.Drawing.SystemColors.ButtonHighlight;
this.flpPhotos.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.flpPhotos.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.flpPhotos.Dock = System.Windows.Forms.DockStyle.Fill; this.flpPhotos.Dock = System.Windows.Forms.DockStyle.Fill;
this.flpPhotos.Location = new System.Drawing.Point(3, 19); this.flpPhotos.Location = new System.Drawing.Point(4, 27);
this.flpPhotos.Margin = new System.Windows.Forms.Padding(0); this.flpPhotos.Margin = new System.Windows.Forms.Padding(0);
this.flpPhotos.Name = "flpPhotos"; this.flpPhotos.Name = "flpPhotos";
this.flpPhotos.Size = new System.Drawing.Size(145, 580); this.flpPhotos.Size = new System.Drawing.Size(218, 873);
this.flpPhotos.TabIndex = 2; this.flpPhotos.TabIndex = 2;
// //
// gbUploading // gbUploading
// //
this.gbUploading.Controls.Add(this.btnUpload); this.gbUploading.Controls.Add(this.btnUpload);
this.gbUploading.Dock = System.Windows.Forms.DockStyle.Bottom; this.gbUploading.Dock = System.Windows.Forms.DockStyle.Bottom;
this.gbUploading.Location = new System.Drawing.Point(0, 602); this.gbUploading.Location = new System.Drawing.Point(0, 904);
this.gbUploading.Margin = new System.Windows.Forms.Padding(4);
this.gbUploading.Name = "gbUploading"; this.gbUploading.Name = "gbUploading";
this.gbUploading.Size = new System.Drawing.Size(151, 79); this.gbUploading.Padding = new System.Windows.Forms.Padding(4);
this.gbUploading.Size = new System.Drawing.Size(226, 118);
this.gbUploading.TabIndex = 1; this.gbUploading.TabIndex = 1;
this.gbUploading.TabStop = false; this.gbUploading.TabStop = false;
this.gbUploading.Text = "操作台"; this.gbUploading.Text = "操作台";
...@@ -358,9 +384,10 @@ ...@@ -358,9 +384,10 @@
this.btnUpload.BackColor = System.Drawing.SystemColors.ButtonHighlight; this.btnUpload.BackColor = System.Drawing.SystemColors.ButtonHighlight;
this.btnUpload.Dock = System.Windows.Forms.DockStyle.Fill; this.btnUpload.Dock = System.Windows.Forms.DockStyle.Fill;
this.btnUpload.Font = new System.Drawing.Font("宋体", 25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnUpload.Font = new System.Drawing.Font("宋体", 25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnUpload.Location = new System.Drawing.Point(3, 17); this.btnUpload.Location = new System.Drawing.Point(4, 25);
this.btnUpload.Margin = new System.Windows.Forms.Padding(4);
this.btnUpload.Name = "btnUpload"; this.btnUpload.Name = "btnUpload";
this.btnUpload.Size = new System.Drawing.Size(145, 59); this.btnUpload.Size = new System.Drawing.Size(218, 89);
this.btnUpload.TabIndex = 3; this.btnUpload.TabIndex = 3;
this.btnUpload.Text = "上传"; this.btnUpload.Text = "上传";
this.btnUpload.UseVisualStyleBackColor = false; this.btnUpload.UseVisualStyleBackColor = false;
...@@ -372,9 +399,10 @@ ...@@ -372,9 +399,10 @@
this.plMain.Controls.Add(this.gbPhotoView); this.plMain.Controls.Add(this.gbPhotoView);
this.plMain.Controls.Add(this.gbOperating); this.plMain.Controls.Add(this.gbOperating);
this.plMain.Dock = System.Windows.Forms.DockStyle.Fill; this.plMain.Dock = System.Windows.Forms.DockStyle.Fill;
this.plMain.Location = new System.Drawing.Point(252, 0); this.plMain.Location = new System.Drawing.Point(378, 0);
this.plMain.Margin = new System.Windows.Forms.Padding(4);
this.plMain.Name = "plMain"; this.plMain.Name = "plMain";
this.plMain.Size = new System.Drawing.Size(541, 681); this.plMain.Size = new System.Drawing.Size(812, 1022);
this.plMain.TabIndex = 2; this.plMain.TabIndex = 2;
// //
// gbPhotoView // gbPhotoView
...@@ -384,8 +412,10 @@ ...@@ -384,8 +412,10 @@
this.gbPhotoView.Dock = System.Windows.Forms.DockStyle.Fill; this.gbPhotoView.Dock = System.Windows.Forms.DockStyle.Fill;
this.gbPhotoView.Font = new System.Drawing.Font("宋体", 10F); this.gbPhotoView.Font = new System.Drawing.Font("宋体", 10F);
this.gbPhotoView.Location = new System.Drawing.Point(0, 0); this.gbPhotoView.Location = new System.Drawing.Point(0, 0);
this.gbPhotoView.Margin = new System.Windows.Forms.Padding(4);
this.gbPhotoView.Name = "gbPhotoView"; this.gbPhotoView.Name = "gbPhotoView";
this.gbPhotoView.Size = new System.Drawing.Size(541, 602); this.gbPhotoView.Padding = new System.Windows.Forms.Padding(4);
this.gbPhotoView.Size = new System.Drawing.Size(812, 904);
this.gbPhotoView.TabIndex = 1; this.gbPhotoView.TabIndex = 1;
this.gbPhotoView.TabStop = false; this.gbPhotoView.TabStop = false;
this.gbPhotoView.Text = "选中照片"; this.gbPhotoView.Text = "选中照片";
...@@ -394,9 +424,10 @@ ...@@ -394,9 +424,10 @@
// //
this.ptbPhotoDisplay.BackColor = System.Drawing.SystemColors.ButtonHighlight; this.ptbPhotoDisplay.BackColor = System.Drawing.SystemColors.ButtonHighlight;
this.ptbPhotoDisplay.Dock = System.Windows.Forms.DockStyle.Fill; this.ptbPhotoDisplay.Dock = System.Windows.Forms.DockStyle.Fill;
this.ptbPhotoDisplay.Location = new System.Drawing.Point(3, 19); this.ptbPhotoDisplay.Location = new System.Drawing.Point(4, 27);
this.ptbPhotoDisplay.Margin = new System.Windows.Forms.Padding(4);
this.ptbPhotoDisplay.Name = "ptbPhotoDisplay"; this.ptbPhotoDisplay.Name = "ptbPhotoDisplay";
this.ptbPhotoDisplay.Size = new System.Drawing.Size(535, 552); this.ptbPhotoDisplay.Size = new System.Drawing.Size(804, 831);
this.ptbPhotoDisplay.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.ptbPhotoDisplay.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.ptbPhotoDisplay.TabIndex = 4; this.ptbPhotoDisplay.TabIndex = 4;
this.ptbPhotoDisplay.TabStop = false; this.ptbPhotoDisplay.TabStop = false;
...@@ -408,9 +439,10 @@ ...@@ -408,9 +439,10 @@
this.plDisplay.Controls.Add(this.btnCamearTurn); this.plDisplay.Controls.Add(this.btnCamearTurn);
this.plDisplay.Controls.Add(this.lbDisplay); this.plDisplay.Controls.Add(this.lbDisplay);
this.plDisplay.Dock = System.Windows.Forms.DockStyle.Bottom; this.plDisplay.Dock = System.Windows.Forms.DockStyle.Bottom;
this.plDisplay.Location = new System.Drawing.Point(3, 571); this.plDisplay.Location = new System.Drawing.Point(4, 858);
this.plDisplay.Margin = new System.Windows.Forms.Padding(4);
this.plDisplay.Name = "plDisplay"; this.plDisplay.Name = "plDisplay";
this.plDisplay.Size = new System.Drawing.Size(535, 28); this.plDisplay.Size = new System.Drawing.Size(804, 42);
this.plDisplay.TabIndex = 3; this.plDisplay.TabIndex = 3;
// //
// cbxTurn // cbxTurn
...@@ -423,9 +455,10 @@ ...@@ -423,9 +455,10 @@
"顺时针90°", "顺时针90°",
"顺时针180°", "顺时针180°",
"顺时针270°"}); "顺时针270°"});
this.cbxTurn.Location = new System.Drawing.Point(229, 0); this.cbxTurn.Location = new System.Drawing.Point(347, 0);
this.cbxTurn.Margin = new System.Windows.Forms.Padding(4);
this.cbxTurn.Name = "cbxTurn"; this.cbxTurn.Name = "cbxTurn";
this.cbxTurn.Size = new System.Drawing.Size(122, 29); this.cbxTurn.Size = new System.Drawing.Size(181, 41);
this.cbxTurn.TabIndex = 33; this.cbxTurn.TabIndex = 33;
this.cbxTurn.SelectedIndexChanged += new System.EventHandler(this.cbxTurn_SelectedIndexChanged); this.cbxTurn.SelectedIndexChanged += new System.EventHandler(this.cbxTurn_SelectedIndexChanged);
// //
...@@ -434,9 +467,10 @@ ...@@ -434,9 +467,10 @@
this.btnEditor.BackColor = System.Drawing.SystemColors.ButtonHighlight; this.btnEditor.BackColor = System.Drawing.SystemColors.ButtonHighlight;
this.btnEditor.Dock = System.Windows.Forms.DockStyle.Right; this.btnEditor.Dock = System.Windows.Forms.DockStyle.Right;
this.btnEditor.Font = new System.Drawing.Font("宋体", 10F, System.Drawing.FontStyle.Bold); this.btnEditor.Font = new System.Drawing.Font("宋体", 10F, System.Drawing.FontStyle.Bold);
this.btnEditor.Location = new System.Drawing.Point(351, 0); this.btnEditor.Location = new System.Drawing.Point(528, 0);
this.btnEditor.Margin = new System.Windows.Forms.Padding(4);
this.btnEditor.Name = "btnEditor"; this.btnEditor.Name = "btnEditor";
this.btnEditor.Size = new System.Drawing.Size(96, 28); this.btnEditor.Size = new System.Drawing.Size(144, 42);
this.btnEditor.TabIndex = 32; this.btnEditor.TabIndex = 32;
this.btnEditor.Text = "裁剪"; this.btnEditor.Text = "裁剪";
this.btnEditor.UseVisualStyleBackColor = false; this.btnEditor.UseVisualStyleBackColor = false;
...@@ -447,9 +481,10 @@ ...@@ -447,9 +481,10 @@
// //
this.btnCamearTurn.Dock = System.Windows.Forms.DockStyle.Right; this.btnCamearTurn.Dock = System.Windows.Forms.DockStyle.Right;
this.btnCamearTurn.Font = new System.Drawing.Font("宋体", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnCamearTurn.Font = new System.Drawing.Font("宋体", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnCamearTurn.Location = new System.Drawing.Point(447, 0); this.btnCamearTurn.Location = new System.Drawing.Point(672, 0);
this.btnCamearTurn.Margin = new System.Windows.Forms.Padding(4);
this.btnCamearTurn.Name = "btnCamearTurn"; this.btnCamearTurn.Name = "btnCamearTurn";
this.btnCamearTurn.Size = new System.Drawing.Size(88, 28); this.btnCamearTurn.Size = new System.Drawing.Size(132, 42);
this.btnCamearTurn.TabIndex = 31; this.btnCamearTurn.TabIndex = 31;
this.btnCamearTurn.Text = "旋转"; this.btnCamearTurn.Text = "旋转";
this.btnCamearTurn.UseVisualStyleBackColor = true; this.btnCamearTurn.UseVisualStyleBackColor = true;
...@@ -461,8 +496,9 @@ ...@@ -461,8 +496,9 @@
this.lbDisplay.AutoSize = true; this.lbDisplay.AutoSize = true;
this.lbDisplay.Dock = System.Windows.Forms.DockStyle.Fill; this.lbDisplay.Dock = System.Windows.Forms.DockStyle.Fill;
this.lbDisplay.Location = new System.Drawing.Point(0, 0); this.lbDisplay.Location = new System.Drawing.Point(0, 0);
this.lbDisplay.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lbDisplay.Name = "lbDisplay"; this.lbDisplay.Name = "lbDisplay";
this.lbDisplay.Size = new System.Drawing.Size(63, 14); this.lbDisplay.Size = new System.Drawing.Size(89, 20);
this.lbDisplay.TabIndex = 0; this.lbDisplay.TabIndex = 0;
this.lbDisplay.Text = "照片名称"; this.lbDisplay.Text = "照片名称";
// //
...@@ -472,9 +508,11 @@ ...@@ -472,9 +508,11 @@
this.gbOperating.Controls.Add(this.btnCanon); this.gbOperating.Controls.Add(this.btnCanon);
this.gbOperating.Controls.Add(this.btnDelete); this.gbOperating.Controls.Add(this.btnDelete);
this.gbOperating.Dock = System.Windows.Forms.DockStyle.Bottom; this.gbOperating.Dock = System.Windows.Forms.DockStyle.Bottom;
this.gbOperating.Location = new System.Drawing.Point(0, 602); this.gbOperating.Location = new System.Drawing.Point(0, 904);
this.gbOperating.Margin = new System.Windows.Forms.Padding(4);
this.gbOperating.Name = "gbOperating"; this.gbOperating.Name = "gbOperating";
this.gbOperating.Size = new System.Drawing.Size(541, 79); this.gbOperating.Padding = new System.Windows.Forms.Padding(4);
this.gbOperating.Size = new System.Drawing.Size(812, 118);
this.gbOperating.TabIndex = 0; this.gbOperating.TabIndex = 0;
this.gbOperating.TabStop = false; this.gbOperating.TabStop = false;
this.gbOperating.Text = "操作台"; this.gbOperating.Text = "操作台";
...@@ -485,9 +523,10 @@ ...@@ -485,9 +523,10 @@
this.btnShot.Dock = System.Windows.Forms.DockStyle.Fill; this.btnShot.Dock = System.Windows.Forms.DockStyle.Fill;
this.btnShot.Font = new System.Drawing.Font("宋体", 25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnShot.Font = new System.Drawing.Font("宋体", 25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnShot.ForeColor = System.Drawing.SystemColors.ControlText; this.btnShot.ForeColor = System.Drawing.SystemColors.ControlText;
this.btnShot.Location = new System.Drawing.Point(3, 17); this.btnShot.Location = new System.Drawing.Point(4, 25);
this.btnShot.Margin = new System.Windows.Forms.Padding(4);
this.btnShot.Name = "btnShot"; this.btnShot.Name = "btnShot";
this.btnShot.Size = new System.Drawing.Size(343, 59); this.btnShot.Size = new System.Drawing.Size(516, 89);
this.btnShot.TabIndex = 7; this.btnShot.TabIndex = 7;
this.btnShot.Text = "拍照"; this.btnShot.Text = "拍照";
this.btnShot.UseVisualStyleBackColor = false; this.btnShot.UseVisualStyleBackColor = false;
...@@ -499,9 +538,10 @@ ...@@ -499,9 +538,10 @@
this.btnCanon.BackColor = System.Drawing.SystemColors.ButtonHighlight; this.btnCanon.BackColor = System.Drawing.SystemColors.ButtonHighlight;
this.btnCanon.Dock = System.Windows.Forms.DockStyle.Right; this.btnCanon.Dock = System.Windows.Forms.DockStyle.Right;
this.btnCanon.Font = new System.Drawing.Font("宋体", 25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnCanon.Font = new System.Drawing.Font("宋体", 25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnCanon.Location = new System.Drawing.Point(346, 17); this.btnCanon.Location = new System.Drawing.Point(520, 25);
this.btnCanon.Margin = new System.Windows.Forms.Padding(4);
this.btnCanon.Name = "btnCanon"; this.btnCanon.Name = "btnCanon";
this.btnCanon.Size = new System.Drawing.Size(96, 59); this.btnCanon.Size = new System.Drawing.Size(144, 89);
this.btnCanon.TabIndex = 6; this.btnCanon.TabIndex = 6;
this.btnCanon.Text = "佳能"; this.btnCanon.Text = "佳能";
this.btnCanon.UseVisualStyleBackColor = false; this.btnCanon.UseVisualStyleBackColor = false;
...@@ -513,9 +553,10 @@ ...@@ -513,9 +553,10 @@
this.btnDelete.BackColor = System.Drawing.SystemColors.ButtonHighlight; this.btnDelete.BackColor = System.Drawing.SystemColors.ButtonHighlight;
this.btnDelete.Dock = System.Windows.Forms.DockStyle.Right; this.btnDelete.Dock = System.Windows.Forms.DockStyle.Right;
this.btnDelete.Font = new System.Drawing.Font("宋体", 25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnDelete.Font = new System.Drawing.Font("宋体", 25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnDelete.Location = new System.Drawing.Point(442, 17); this.btnDelete.Location = new System.Drawing.Point(664, 25);
this.btnDelete.Margin = new System.Windows.Forms.Padding(4);
this.btnDelete.Name = "btnDelete"; this.btnDelete.Name = "btnDelete";
this.btnDelete.Size = new System.Drawing.Size(96, 59); this.btnDelete.Size = new System.Drawing.Size(144, 89);
this.btnDelete.TabIndex = 2; this.btnDelete.TabIndex = 2;
this.btnDelete.Text = "删除"; this.btnDelete.Text = "删除";
this.btnDelete.UseVisualStyleBackColor = false; this.btnDelete.UseVisualStyleBackColor = false;
...@@ -524,13 +565,14 @@ ...@@ -524,13 +565,14 @@
// //
// FrmMain // FrmMain
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(944, 681); this.ClientSize = new System.Drawing.Size(1416, 1022);
this.Controls.Add(this.plMain); this.Controls.Add(this.plMain);
this.Controls.Add(this.plRight); this.Controls.Add(this.plRight);
this.Controls.Add(this.plLeft); this.Controls.Add(this.plLeft);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(4);
this.Name = "FrmMain"; this.Name = "FrmMain";
this.Text = "样品拍照采集"; this.Text = "样品拍照采集";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmMain_FormClosing); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmMain_FormClosing);
......
...@@ -1001,17 +1001,13 @@ namespace Kivii.Sample.ImageUploader ...@@ -1001,17 +1001,13 @@ namespace Kivii.Sample.ImageUploader
private void CanonForm_DownloadCompletely(object sender, EventArgs e) private void CanonForm_DownloadCompletely(object sender, EventArgs e)
{ {
var filePath = (string)sender; var stream = (Stream)sender;
if (filePath.IsNullOrEmpty()) return; //FileInfo fileInfo = new FileInfo(stream);
if(!File.Exists(filePath)) return;
FileInfo fileInfo = new FileInfo(filePath);
// 捕获当前帧 // 捕获当前帧
Bitmap bitmap = System.Drawing.Image.FromFile(filePath) as Bitmap; Bitmap bitmap = new Bitmap(stream);
if (bitmap == null) return; if (bitmap == null) return;
var picName = $"{DateTime.Now.ToString("mmssfff")}_{fileInfo.Name}"; var picName = $"{DateTime.Now.ToString("mmssfff")}";
string reportId = string.Empty; string reportId = string.Empty;
if (currentReport != null) if (currentReport != null)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment