| | |
| | | //using CloudWaterNetwork.Magnifier; |
| | | using DevExpress.XtraEditors; |
| | | //using DevExpress.XtraEditors; |
| | | using Hydro.CommonBase; |
| | | using Hydro.Core.Model; |
| | | using Hydro.Inp; |
| | |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Data.Common; |
| | | using System.Diagnostics; |
| | | //using System.Diagnostics; |
| | | using System.Drawing; |
| | | using System.IO; |
| | | using System.Linq; |
| | | using System.Numerics; |
| | | using System.Reflection; |
| | | using System.Runtime.CompilerServices; |
| | | using System.Runtime.InteropServices.WindowsRuntime; |
| | | using System.Runtime.Remoting.Metadata; |
| | | //using System.Runtime.InteropServices.WindowsRuntime; |
| | | //using System.Runtime.Remoting.Metadata; |
| | | using System.Security.Cryptography; |
| | | using System.Text; |
| | | using System.Threading; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | using System.Windows.Forms.DataVisualization.Charting; |
| | | //using System.Windows.Forms.DataVisualization.Charting; |
| | | //using static Hydro.Core.ObjectEnum; |
| | | using static Hydro.MapView.MapViewEnum; |
| | | using static System.Net.Mime.MediaTypeNames; |
| | |
| | | // DoubleBuffered = true; |
| | | // SetStyle(ControlStyles.SupportsTransparentBackColor, true); |
| | | // BackColor = Color.Transparent; |
| | | |
| | | |
| | | |
| | | //} |
| | | public MapViewer(bool showToolBar = false) |
| | |
| | | |
| | | this.showToolBar = showToolBar; |
| | | InitializeComponent(); |
| | | |
| | | //var propertyForm = new PropertyForm(); |
| | | //propertyForm.Dock = DockStyle.Right; |
| | | //this.Controls.Add(propertyForm); |
| | | MapCenter = PointF.Empty; |
| | | zoom = 1.0f; |
| | | DoubleBuffered = true; |
| | |
| | | } |
| | | private void MapViewer_Load(object sender, EventArgs e) |
| | | { |
| | | GlobalObject.PropertyForm = this.propertyForm; |
| | | this.panel1.Visible = _showToolBar; |
| | | this.statusStrip1.Visible = _showStatusBar; |
| | | |
| | |
| | | { |
| | | if (_filePath == null) return; |
| | | FileInfo fi = new FileInfo(_filePath); |
| | | Process.Start("explorer.exe", $"/select,\"{_filePath}\""); |
| | | System.Diagnostics.Process.Start("explorer.exe", $"/select,\"{_filePath}\""); |
| | | //System.Diagnostics.Process.Start("explorer.exe", fi.Directory.FullName); |
| | | } |
| | | private void EPA中打开ToolStripMenuItem_Click(object sender, EventArgs e) |
| | |
| | | if (_filePath == null) return; |
| | | |
| | | |
| | | Process.Start(@"epanetH\Epanet2wH.exe", _filePath); |
| | | System.Diagnostics.Process.Start(@"epanetH\Epanet2wH.exe", _filePath); |
| | | } |
| | | private void 保存ToolStripMenuItem_Click(object sender, EventArgs e) |
| | | { |
| | |
| | | { |
| | | if (_filePath == null) return; |
| | | FileInfo fi = new FileInfo(_filePath); |
| | | Process.Start("explorer.exe", $"/select,\"{_filePath}\""); |
| | | System.Diagnostics.Process.Start("explorer.exe", $"/select,\"{_filePath}\""); |
| | | } |
| | | private void label_file_Click(object sender, EventArgs e) |
| | | { |
| | | if (_filePath == null) return; |
| | | FileInfo fi = new FileInfo(_filePath); |
| | | Process.Start("explorer.exe", $"/select,\"{_filePath}\""); |
| | | System.Diagnostics.Process.Start("explorer.exe", $"/select,\"{_filePath}\""); |
| | | } |
| | | private void 设为立管点ToolStripMenuItem_Click(object sender, EventArgs e) |
| | | { |