From 44d9b3ffe4a3b743dbc9c6023e80f77e2975283e Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期三, 31 七月 2024 23:04:54 +0800 Subject: [PATCH] 部分修改 --- Hydro/Yw.EPAcore.Test/Form1.cs | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Hydro/Yw.EPAcore.Test/Form1.cs b/Hydro/Yw.EPAcore.Test/Form1.cs index 1d8ae54..958ffc6 100644 --- a/Hydro/Yw.EPAcore.Test/Form1.cs +++ b/Hydro/Yw.EPAcore.Test/Form1.cs @@ -22,6 +22,8 @@ textBox1.Text = ofd.FileName; } } + + NetWork _net; private void button2_Click(object sender, EventArgs e) { @@ -31,7 +33,6 @@ bool result = _net.BuildFromInp(path); if (result) StatusLabel1.Text = "NetWork创建成功"; else StatusLabel1.Text = "NetWork创建失败"; - } private void button3_Click(object sender, EventArgs e) @@ -41,8 +42,8 @@ StatusLabel1.Text = "请先创建NetWork对象"; return; } - var list=_net.Calc(); - if (list!=null) + var list = _net.Calc(); + if (list != null) { StatusLabel1.Text = "计算成功"; } @@ -51,5 +52,7 @@ StatusLabel1.Text = "计算失败"; } } + + } } \ No newline at end of file -- Gitblit v1.9.3