lu
2025-01-07 04638a49e4bc1644c48544c03e9f8883983b7ab6
DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -652,12 +652,9 @@
                if (ctrl is TextEdit)
                {
                    var txt = ctrl as TextEdit;
                    if (_isRead(txt.Tag))
                    {
                        txt.ReadOnly = true;
                    }
                    else
                        txt.ReadOnly = isEdt;
                    bool _bl = _isRead(txt.Tag, isEdt);
                    txt.ReadOnly = _bl;
                    // txt.ReadOnly = isEdt;
                    continue;
                }
            }
@@ -1152,13 +1149,19 @@
            }
        }
        private static bool _isRead(object obj)
        private static bool _isRead(object obj,bool isEdt=false)
        {
            if (obj != null && obj.ToString().ToUpper().Contains("readOnly".ToUpper()))
            ///永远是只读的
            if (obj != null && obj.ToString().ToUpper()==("readOnly".ToUpper()))
            {
                return true;
            }
            return false;
            ///永远是可写的
            if (obj != null && obj.ToString().ToUpper()==("readOnly-1".ToUpper()))
            {
                return false;
            }
            return isEdt;
        }
        /// <summary>
        ///     切换选项卡