using IStation;
|
using IStation.Epanet.Enums;
|
using IStation.Epanet;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Runtime;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace ConsoleApp1
|
{
|
internal class Program
|
{
|
private static string _model_file = System.IO.Path.Combine
|
(Settings.File.RootDirectory, "ch2_v3_20240801(Clear).inp");
|
static void Main(string[] args)
|
{
|
var err = EpanetMethods.ENopen(_model_file, "", "");
|
if (err != ErrorCode.Ok)
|
{
|
return;
|
}
|
|
err = EpanetMethods.ENopenH();
|
if (err != ErrorCode.Ok)
|
{
|
return;
|
}
|
EpanetMethods.ENcloseH();
|
EpanetMethods.ENclose();
|
|
Console.WriteLine("1");
|
Console.ReadKey();
|
}
|
}
|
}
|