From 15d15d24fbccb9b70a305b46b71453b2ab1a720e Mon Sep 17 00:00:00 2001 From: qinjie <qinjie@163.com> Date: 星期二, 19 十二月 2023 15:43:46 +0800 Subject: [PATCH] 提交代码 --- TestForm/Form1.Designer.cs | 92 ++++++++++++++++++++++++++++++---------------- 1 files changed, 60 insertions(+), 32 deletions(-) diff --git a/TestForm/Form1.Designer.cs b/TestForm/Form1.Designer.cs index 831cfa6..3717395 100644 --- a/TestForm/Form1.Designer.cs +++ b/TestForm/Form1.Designer.cs @@ -28,56 +28,78 @@ /// </summary> private void InitializeComponent() { - Hydro.MapView.Template template1 = new Hydro.MapView.Template(); - Hydro.MapView.MapOption mapOption1 = new Hydro.MapView.MapOption(); + Hydro.MapView.Template template2 = new Hydro.MapView.Template(); + Hydro.MapView.MapOption mapOption2 = new Hydro.MapView.MapOption(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); - this.map = new CloudWaterNetwork.MapViewer(); + this.map = new Hydro.MapUI.MapViewer(); + this.toolStrip1 = new System.Windows.Forms.ToolStrip(); + this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); + this.toolStrip1.SuspendLayout(); this.SuspendLayout(); // // map // this.map._IsEditMode = true; - template1.CenterX = 0F; - template1.CenterY = 0F; - template1.filePath = null; - template1.ID = "00000000-0000-0000-0000-000000000000"; - template1.ImportExcelIndex = 0; - template1.ImportExcelPath = null; - mapOption1._ShowJunction = true; - mapOption1._ShowValve = true; - mapOption1.junction_multiply = 1F; - mapOption1.Link_multiply = 0.6667F; - template1.mapOption = mapOption1; - template1.MaxLevel = 99; - template1.Node1 = null; - template1.Node2 = null; - template1.Regions = null; - template1.rotation = 0D; - template1.rotationF = 90D; - template1.Type = Hydro.MapView.MapViewEnum.TemplateType.鍏ㄩ儴; - template1.view = ((Hydro.MapView.MapDimensions)(resources.GetObject("template1.view"))); - template1.Visible = null; - template1.X = null; - template1.Y = null; - template1.zoom = 1F; - template1.鍚嶇О = "涓存椂"; - this.map._newTemplate = template1; + template2.CenterX = 0F; + template2.CenterY = 0F; + template2.filePath = null; + template2.ID = "00000000-0000-0000-0000-000000000000"; + template2.ImportExcelIndex = 0; + template2.ImportExcelPath = null; + mapOption2._ShowJunction = true; + mapOption2._ShowValve = true; + mapOption2.junction_multiply = 1F; + mapOption2.Link_multiply = 0.6667F; + template2.mapOption = mapOption2; + template2.MaxLevel = 99; + template2.Node1 = null; + template2.Node2 = null; + template2.Regions = null; + template2.rotation = 0D; + template2.rotationF = 90D; + template2.Type = Hydro.MapView.MapViewEnum.TemplateType.鍏ㄩ儴; + template2.view = ((Hydro.MapView.MapDimensions)(resources.GetObject("template2.view"))); + template2.Visible = null; + template2.X = null; + template2.Y = null; + template2.zoom = 1F; + template2.鍚嶇О = "涓存椂"; + this.map._newTemplate = template2; this.map._ShowJunction = true; this.map._ShowValve = true; this.map.BackColor = System.Drawing.Color.Transparent; this.map.Dock = System.Windows.Forms.DockStyle.Fill; this.map.junction_multiply = 1F; this.map.Link_multiply = 1F; - this.map.Location = new System.Drawing.Point(0, 0); - this.map.MapCenter = ((System.Drawing.PointF)(resources.GetObject("map.MapCenter"))); + this.map.Location = new System.Drawing.Point(0, 25); + //this.map.MapCenter = ((System.Drawing.PointF)(resources.GetObject("map.MapCenter"))); this.map.Name = "map"; this.map.Rotation = 0D; this.map.RotationF = 90D; this.map.ShowStatusBar = true; this.map.showToolBar = true; - this.map.Size = new System.Drawing.Size(800, 450); + this.map.Size = new System.Drawing.Size(800, 425); this.map.TabIndex = 0; this.map.zoom = 1F; + // + // toolStrip1 + // + this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.toolStripButton1}); + this.toolStrip1.Location = new System.Drawing.Point(0, 0); + this.toolStrip1.Name = "toolStrip1"; + this.toolStrip1.Size = new System.Drawing.Size(800, 25); + this.toolStrip1.TabIndex = 1; + this.toolStrip1.Text = "toolStrip1"; + // + // toolStripButton1 + // + this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image"))); + this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripButton1.Name = "toolStripButton1"; + this.toolStripButton1.Size = new System.Drawing.Size(52, 22); + this.toolStripButton1.Text = "璁$畻"; + this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click); // // Form1 // @@ -85,16 +107,22 @@ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(800, 450); this.Controls.Add(this.map); + this.Controls.Add(this.toolStrip1); this.Name = "Form1"; this.Text = "Form1"; this.Load += new System.EventHandler(this.Form1_Load); + this.toolStrip1.ResumeLayout(false); + this.toolStrip1.PerformLayout(); this.ResumeLayout(false); + this.PerformLayout(); } #endregion - private CloudWaterNetwork.MapViewer map; + private Hydro.MapUI.MapViewer map; + private System.Windows.Forms.ToolStrip toolStrip1; + private System.Windows.Forms.ToolStripButton toolStripButton1; } } -- Gitblit v1.9.3