public override PropertyPage CreateNew(int idx = 0)
        {
            PropertyPage p = new TabPagesPropertyPage();

            p.Properties["ID"] = "tabControl" + idx;
            return(p);
        }
        public PropertyPage CreatePropertyPage()
        {
            PropertyPage page     = null;
            string       elemType = this.Element.ElementType;

            if (elemType == Settings.Default.CHECKBOXGROUP)
            {
                page = new CheckboxPropertyPage();
            }
            else if (elemType == Settings.Default.DATETIME)
            {
                page = new DateTimePropertyPage();
            }
            else if (elemType == Settings.Default.RADIOGROUP)
            {
                page = new RadioGroupPropertyPage();
            }
            else if (elemType == Settings.Default.SELECTBOX)
            {
                page = new SelectBoxPropertyPage();
            }
            else if (elemType == Settings.Default.GRID)
            {
                page = new GridPropertyPage();
            }
            else if (elemType == Settings.Default.TABPAGES)
            {
                page = new TabPagesPropertyPage();
            }
            else if (elemType == Settings.Default.TEXTAREA)
            {
                page = new TextareaPropertyPage();
            }
            else if (elemType == Settings.Default.TEXTBOX)
            {
                page = new TextboxPropertyPage();
            }
            else if (elemType == Settings.Default.FILEUPLOAD)
            {
                page = new FileUploadPropertyPage();
            }
            else if (elemType == Settings.Default.BUTTON)
            {
                page = new ButtonPropertyPage();
            }

            return(page);
        }