namespace HStation.Revit { /// /// 阀门状态 /// public class ValveStatus { /// /// 无 /// public const string None = "None"; /// /// 开启 /// public const string Open = "Open"; /// /// 关闭 /// public const string Closed = "Closed"; /// /// 包含 /// public static bool Contains(string status) { if (string.IsNullOrEmpty(status)) { return false; } if (status == None) { return true; } if (status == Open) { return true; } if (status == Closed) { return true; } return false; } } }