public bool AfterShow()
        {
            int i = 0;

            foreach (TypeHandlerManager.TypeHandlerInfo th in _typeHandlerCheck.Items)
            {
                th.Enabled = _typeHandlerCheck.GetItemChecked(i++);
                ComponentInspectorProperties.EnableTypeHandler(th.Name, th.Enabled);
            }
            return(true);
        }
示例#2
0
        public override bool StorePanelContents()
        {
            ICollection typeHandlers = TypeHandlerManager.Instance.GetTypeHandlers();

            foreach (TypeHandlerManager.TypeHandlerInfo th in typeHandlers)
            {
                if (th.HandledType == typeof(IEnumerator))
                {
                    th.Enabled = EnumeratorCheckBox.Checked;
                }
                else if (th.HandledType == typeof(IList))
                {
                    th.Enabled = ListCheckBox.Checked;
                }
                else if (th.HandledType == typeof(EventHandlerList))
                {
                    th.Enabled = EventHandlerListCheckBox.Checked;
                }
                ComponentInspectorProperties.EnableTypeHandler(th.Name, th.Enabled);
            }
            return(true);
        }