duheng
2024-10-16 083c4e47c7a59025f3348bd093693c6b3febb014
Service/HStation.Service.Revit.Core/00-core/ValveStatus.cs
@@ -19,5 +19,31 @@
        /// 关闭
        /// </summary>
        public const string Closed = "Closed";
        /// <summary>
        /// 包含
        /// </summary>
        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;
        }
    }
}