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