コード例 #1
0
        /// <summary>
        /// Gets the editor for a grid entry.
        /// </summary>
        /// <param name="entry">The entry to look the editor for.</param>
        /// <returns>Editor for the entry</returns>
        public virtual Editor GetEditor(GridEntry entry)
        {
            var property = entry as PropertyItem;

            if (property != null)
            {
                return(Editors.GetEditor(property));
            }

            var category = entry as CategoryItem;

            if (category != null)
            {
                return(Editors.GetEditor(category));
            }

            return(null);
        }