Exemplo n.º 1
0
        public void ShowLayoutEditor(bool modal)
        {
            UITypeEditorGeneric uITypeEditorGeneric = (UITypeEditorGeneric)TypeDescriptor.GetEditor(this, typeof(UITypeEditor));

            if (uITypeEditorGeneric != null)
            {
                uITypeEditorGeneric.CreateMainPlugIn += this.CreateLayoutPlugIn;
                uITypeEditorGeneric.EditValue(this, false, modal);
                uITypeEditorGeneric.CreateMainPlugIn -= this.CreateLayoutPlugIn;
            }
        }
Exemplo n.º 2
0
        public void ShowEditorCustom(bool designTimeStyle, bool modal)
        {
            UITypeEditorGeneric uITypeEditorGeneric = (UITypeEditorGeneric)TypeDescriptor.GetEditor(this, typeof(UITypeEditor));

            uITypeEditorGeneric?.EditValue(this, designTimeStyle, modal);
        }