duheng
2024-09-22 9ffb31c233f3b4891550293294c2ee716f77b42a
Desktop/HStation.Xhs.Hydro.Test.Core/Form2.cs
@@ -5,11 +5,12 @@
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 Yw.EPAnet.Calcu;
using Yw.EPAnet;
using Yw.WinFrmUI.Q3d;
namespace Hydro.ClientTool
@@ -26,9 +27,21 @@
        private void Form2_Load(object sender, EventArgs e)
        {
            string inptxt=File.ReadAllText(@"D:\Desktop\D_Production\工具项目\ISupply\XHS.V1.0\Hydro\bin\debug\net6.0-windows\test.inp");
            Network network = InpInteropHelper.FromInpString(inptxt);
            NetworkViewModel net=new NetworkViewModel();
            
        }
        //帮我编写一个方法,将network转换为NetworkViewModel
        public NetworkViewModel ConvertNetworkToNetworkViewModel(Network network)
        {
            NetworkViewModel net = new NetworkViewModel();
            return net;
        }
        private void Form2_KeyDown(object sender, KeyEventArgs e)
        {
            map.MapViewer_KeyDown(sender, e);