| | |
| | | using System; |
| | | |
| | | using Newtonsoft.Json.Linq; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.IO; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | using Hydro.MapUI; |
| | | using Hydro.MapView; |
| | | using Hydro.MapView.Common; |
| | | using Yw.EPAnet; |
| | | using Yw.WinFrmUI.Q3d; |
| | | |
| | | namespace Hydro.ClientTool |
| | | { |
| | |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | private void 打开OToolStripMenuItem_Click(object sender, EventArgs e) |
| | | { |
| | | 模板管理 form = new 模板管理(); |
| | | if (form.ShowDialog() == DialogResult.OK) |
| | | { |
| | | var temp = TemplateList.GetTemplate(form.TemplateID); |
| | | mapViewer1.SetData(temp); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | private void Form2_Load(object sender, EventArgs e) |
| | | { |
| | | this.mapViewer1.showToolBar = true; |
| | | if (TemplateList.Inited == false) |
| | | { |
| | | TemplateList.Init(); |
| | | } |
| | | GlobalObject.map = this.mapViewer1; |
| | | ////GlobalObject.PropertyForm = this.propertyForm1; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | //帮我编写一个方法,将network转换为NetworkViewModel |
| | | |
| | | private void Form2_KeyDown(object sender, KeyEventArgs e) |
| | | { |
| | | mapViewer1.MapViewer_KeyDown(sender, e); |
| | | map.MapViewer_KeyDown(sender, e); |
| | | } |
| | | } |
| | | } |