duheng
2025-03-28 9b673ca69c30616b5e5807d665ed8efa2720e1c8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
namespace HydroUI
{
 
    [Serializable]
    public class PipeViewModel : LinkViewModel
    {
        public override string ToString()
        {
            if (Roughness == 0) Roughness = 110;
            string statusString = Status == StatusType.CLOSED ? "CLOSED" : "";
            return $"{ID}\t{Node1}\t{Node2}\t{Length}\t{Diameter}\t{Roughness}\t{MinorLoss}\t{statusString}\t;\t";
        }
    }
 
}