Seal.Forms.HelperEditor.GetEditStyle C# (CSharp) Méthode

GetEditStyle() public méthode

public GetEditStyle ( ITypeDescriptorContext context ) : UITypeEditorEditStyle
context ITypeDescriptorContext
Résultat UITypeEditorEditStyle
        public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context)
        {
            setContext(context);
            if (_metaTable != null)
            {
                if (context.PropertyDescriptor.Name == "HelperRefreshColumns")
                {
                    if (!_metaTable.DynamicColumns || !_metaTable.IsEditable) return UITypeEditorEditStyle.None;
                }
            }
            if (_metaEnum != null)
            {
                if (context.PropertyDescriptor.Name == "HelperRefreshEnum")
                {
                    if (!_metaEnum.IsDynamic || !_metaEnum.IsEditable) return UITypeEditorEditStyle.None;
                }
            }

            return UITypeEditorEditStyle.Modal;
        }