| | |
| | | /// </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 |
| | | // |
| | |
| | | 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; |
| | | } |
| | | } |
| | | |