Esempio n. 1
0
        /// <summary>
        /// Obtains a control to edit a given property. Changes to the selection set
        /// cause this method to be called again (and passed a new 'context'),
        /// unless ICacheablePropertyControl is implemented on the control. For
        /// performance reasons, it is highly recommended that the control implement
        /// the ICacheablePropertyControl interface.</summary>
        /// <param name="context">Context for property editing control</param>
        /// <returns>Control to edit the given context</returns>
        public Control GetEditingControl(PropertyEditorControlContext context)
        {
            if (context.LastSelectedObject == null)
                return null;
            var control = new StringArrayEditingControl(context);
            Sce.Atf.Applications.SkinService.ApplyActiveSkin(control);
            return control;


        }
Esempio n. 2
0
        /// <summary>
        /// Obtains a control to edit a given property. Changes to the selection set
        /// cause this method to be called again (and passed a new 'context'),
        /// unless ICacheablePropertyControl is implemented on the control. For
        /// performance reasons, it is highly recommended that the control implement
        /// the ICacheablePropertyControl interface.</summary>
        /// <param name="context">Context for property editing control</param>
        /// <returns>Control to edit the given context</returns>
        public Control GetEditingControl(PropertyEditorControlContext context)
        {
            if (context.LastSelectedObject == null)
            {
                return(null);
            }
            var control = new StringArrayEditingControl(context);

            Sce.Atf.Applications.SkinService.ApplyActiveSkin(control);
            return(control);
        }
            private void UpdateSelection()
            {
                StringArrayEditingControl p = (StringArrayEditingControl)Parent;

                p.SelectItemControl(this, m_useModifierKeys);
            }