lixiaojun
2024-09-02 f057f1388eda8aeaea7f3e7a0451b57f32de324c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
 
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 Yw.EPAnet;
using Yw.WinFrmUI.Q3d;
 
namespace Hydro.ClientTool
{
    public partial class Form2 : Form
    {
        public Form2()
        {
 
            InitializeComponent();
        }
 
     
 
        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);
        }
    }
}