Commit 094e496a by 陶然

优化

parent f1c499ac
...@@ -20,7 +20,7 @@ namespace Kivii.Sample.ImageUploader ...@@ -20,7 +20,7 @@ namespace Kivii.Sample.ImageUploader
public FrmImageEditor() public FrmImageEditor()
{ {
InitializeComponent(); InitializeComponent();
pictureBox.SelectionBounds = new Rectangle(0, 0, 500, 600); //pictureBox.SelectionBounds = new Rectangle(0, 0, 500, 600);
} }
public Bitmap backgroundImage; public Bitmap backgroundImage;
...@@ -38,6 +38,7 @@ namespace Kivii.Sample.ImageUploader ...@@ -38,6 +38,7 @@ namespace Kivii.Sample.ImageUploader
{ {
pictureBox.BackgroundImage = backgroundImage; pictureBox.BackgroundImage = backgroundImage;
pictureBox.BackgroundImageLayout = ImageLayout.Zoom; pictureBox.BackgroundImageLayout = ImageLayout.Zoom;
pictureBox.SelectionBounds = new Rectangle(0, 0, backgroundImage.Width, (int)(backgroundImage.Height * 0.75));
pictureBox.EnableSelection = true; pictureBox.EnableSelection = true;
resizePictureBox(); resizePictureBox();
} }
......
...@@ -90,8 +90,9 @@ ...@@ -90,8 +90,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
...@@ -99,9 +100,11 @@ ...@@ -99,9 +100,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 = "查询样品";
...@@ -110,10 +113,9 @@ ...@@ -110,10 +113,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 = "";
// //
...@@ -122,9 +124,10 @@ ...@@ -122,9 +124,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
...@@ -132,9 +135,10 @@ ...@@ -132,9 +135,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);
// //
...@@ -143,9 +147,10 @@ ...@@ -143,9 +147,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;
...@@ -162,9 +167,11 @@ ...@@ -162,9 +167,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 = "系统登录";
...@@ -174,9 +181,10 @@ ...@@ -174,9 +181,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;
...@@ -187,9 +195,10 @@ ...@@ -187,9 +195,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;
...@@ -198,10 +207,11 @@ ...@@ -198,10 +207,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);
// //
...@@ -209,27 +219,30 @@ ...@@ -209,27 +219,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 = "用户名:";
// //
...@@ -237,18 +250,20 @@ ...@@ -237,18 +250,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 = "地 址:";
// //
...@@ -260,8 +275,10 @@ ...@@ -260,8 +275,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 = "相机视图";
...@@ -271,9 +288,10 @@ ...@@ -271,9 +288,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);
// //
...@@ -282,9 +300,10 @@ ...@@ -282,9 +300,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;
...@@ -294,17 +313,19 @@ ...@@ -294,17 +313,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;
...@@ -314,9 +335,10 @@ ...@@ -314,9 +335,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
...@@ -325,8 +347,10 @@ ...@@ -325,8 +347,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 = "已拍照片";
...@@ -338,19 +362,21 @@ ...@@ -338,19 +362,21 @@
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.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.flpPhotos.ImeMode = System.Windows.Forms.ImeMode.NoControl;
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 = "操作台";
...@@ -360,9 +386,10 @@ ...@@ -360,9 +386,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;
...@@ -374,9 +401,10 @@ ...@@ -374,9 +401,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
...@@ -386,8 +414,10 @@ ...@@ -386,8 +414,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 = "选中照片";
...@@ -396,10 +426,9 @@ ...@@ -396,10 +426,9 @@
// //
this.panel1.Controls.Add(this.picDisPlay); this.panel1.Controls.Add(this.picDisPlay);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(3, 19); this.panel1.Location = new System.Drawing.Point(4, 27);
this.panel1.Margin = new System.Windows.Forms.Padding(2);
this.panel1.Name = "panel1"; this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(535, 552); this.panel1.Size = new System.Drawing.Size(804, 831);
this.panel1.TabIndex = 4; this.panel1.TabIndex = 4;
// //
// picDisPlay // picDisPlay
...@@ -408,10 +437,9 @@ ...@@ -408,10 +437,9 @@
this.picDisPlay.Dock = System.Windows.Forms.DockStyle.Fill; this.picDisPlay.Dock = System.Windows.Forms.DockStyle.Fill;
this.picDisPlay.EnableSelection = false; this.picDisPlay.EnableSelection = false;
this.picDisPlay.Location = new System.Drawing.Point(0, 0); this.picDisPlay.Location = new System.Drawing.Point(0, 0);
this.picDisPlay.Margin = new System.Windows.Forms.Padding(2);
this.picDisPlay.Name = "picDisPlay"; this.picDisPlay.Name = "picDisPlay";
this.picDisPlay.SelectionBounds = new System.Drawing.Rectangle(0, 0, 0, 0); this.picDisPlay.SelectionBounds = new System.Drawing.Rectangle(0, 0, 0, 0);
this.picDisPlay.Size = new System.Drawing.Size(535, 552); this.picDisPlay.Size = new System.Drawing.Size(804, 831);
this.picDisPlay.TabIndex = 5; this.picDisPlay.TabIndex = 5;
// //
// plDisplay // plDisplay
...@@ -421,9 +449,10 @@ ...@@ -421,9 +449,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
...@@ -436,9 +465,10 @@ ...@@ -436,9 +465,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);
// //
...@@ -447,9 +477,10 @@ ...@@ -447,9 +477,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;
...@@ -460,9 +491,10 @@ ...@@ -460,9 +491,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;
...@@ -474,8 +506,9 @@ ...@@ -474,8 +506,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 = "照片名称";
// //
...@@ -485,9 +518,11 @@ ...@@ -485,9 +518,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 = "操作台";
...@@ -498,9 +533,10 @@ ...@@ -498,9 +533,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;
...@@ -512,9 +548,10 @@ ...@@ -512,9 +548,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;
...@@ -526,9 +563,10 @@ ...@@ -526,9 +563,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;
...@@ -537,13 +575,14 @@ ...@@ -537,13 +575,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);
......
...@@ -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.6300")] [assembly: AssemblyVersion("5.4.2024.7090")]
[assembly: AssemblyFileVersion("5.4.2024.6300")] [assembly: AssemblyFileVersion("5.4.2024.7090")]
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