From d907f85dd2d7ebf702ffd478fcf5d47c2a29560c Mon Sep 17 00:00:00 2001 From: cloudflight <cloudflight@126.com> Date: 星期六, 06 七月 2024 10:46:49 +0800 Subject: [PATCH] [fix]键盘事件不生效问题 --- Hydro.ClientCore/Form2.Designer.cs | 83 ++++++++++++++++++++--------------------- 1 files changed, 40 insertions(+), 43 deletions(-) diff --git a/Hydro.ClientCore/Form2.Designer.cs b/Hydro.ClientCore/Form2.Designer.cs index 019d136..6b914bf 100644 --- a/Hydro.ClientCore/Form2.Designer.cs +++ b/Hydro.ClientCore/Form2.Designer.cs @@ -30,55 +30,52 @@ private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form2)); - this.mapViewer1 = new Hydro.MapUI.MapViewer(); - //this.propertyForm1 = new Hydro.MapUI.PropertyForm(); - this.SuspendLayout(); + mapViewer1 = new MapUI.MapViewer(); + SuspendLayout(); // // mapViewer1 // - this.mapViewer1._IsEditMode = true; - this.mapViewer1._newTemplate = null; - this.mapViewer1._ShowJunction = true; - this.mapViewer1._ShowValve = true; - this.mapViewer1._Template = null; - this.mapViewer1.BackColor = System.Drawing.Color.Transparent; - this.mapViewer1.Dock = System.Windows.Forms.DockStyle.Fill; - this.mapViewer1.junction_multiply = 1F; - this.mapViewer1.Link_multiply = 1F; - this.mapViewer1.Location = new System.Drawing.Point(0, 0); - //this.mapViewer1.MapCenter = ((System.Drawing.PointF)(resources.GetObject("mapViewer1.MapCenter"))); - this.mapViewer1.Name = "mapViewer1"; - this.mapViewer1.Rotation = 0D; - this.mapViewer1.RotationF = 90D; - this.mapViewer1.ShowStatusBar = true; - this.mapViewer1.showToolBar = true; - this.mapViewer1.Size = new System.Drawing.Size(1000, 666); - this.mapViewer1.TabIndex = 0; - this.mapViewer1.zoom = 1F; - // - // propertyForm1 - // - //this.propertyForm1.Dock = System.Windows.Forms.DockStyle.Right; - //this.propertyForm1.Location = new System.Drawing.Point(1000, 0); - //this.propertyForm1.Name = "propertyForm1"; - //this.propertyForm1.Size = new System.Drawing.Size(272, 666); - //this.propertyForm1.TabIndex = 1; + mapViewer1._IsEditMode = true; + mapViewer1._newTemplate = null; + mapViewer1._ShowJunction = true; + mapViewer1._ShowValve = true; + mapViewer1._Template = null; + mapViewer1.BackColor = System.Drawing.Color.Transparent; + mapViewer1.Dock = System.Windows.Forms.DockStyle.Fill; + mapViewer1.junction_multiply = 1F; + mapViewer1.Link_multiply = 1F; + mapViewer1.Location = new System.Drawing.Point(0, 0); + mapViewer1.Lock2DView = false; + mapViewer1.MapCenter = (System.Drawing.PointF)resources.GetObject("mapViewer1.MapCenter"); + mapViewer1.mapOption = (MapView.MapDimensions)resources.GetObject("mapViewer1.mapOption"); + mapViewer1.Margin = new System.Windows.Forms.Padding(4); + mapViewer1.Name = "mapViewer1"; + mapViewer1.Rotation = 0D; + mapViewer1.RotationF = 90D; + mapViewer1.ShowStatusBar = true; + mapViewer1.showToolBar = true; + mapViewer1.Size = new System.Drawing.Size(1484, 944); + mapViewer1.TabIndex = 0; + mapViewer1.zoom = 1F; // // Form2 // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(1272, 666); - this.Controls.Add(this.mapViewer1); - //this.Controls.Add(this.propertyForm1); - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.Name = "Form2"; - this.ShowIcon = false; - this.Text = "鍦板浘娴嬭瘯"; - this.WindowState = System.Windows.Forms.FormWindowState.Maximized; - this.Load += new System.EventHandler(this.Form2_Load); - this.ResumeLayout(false); - + AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); + AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + AutoValidate = System.Windows.Forms.AutoValidate.EnableAllowFocusChange; + ClientSize = new System.Drawing.Size(1484, 944); + Controls.Add(mapViewer1); + DoubleBuffered = true; + Icon = (System.Drawing.Icon)resources.GetObject("$this.Icon"); + KeyPreview = true; + Margin = new System.Windows.Forms.Padding(4); + Name = "Form2"; + ShowIcon = false; + Text = "鍦板浘娴嬭瘯"; + WindowState = System.Windows.Forms.FormWindowState.Maximized; + Load += Form2_Load; + KeyDown += Form2_KeyDown; + ResumeLayout(false); } #endregion -- Gitblit v1.9.3