public void deletepropertytype_click(object sender, System.EventArgs e)
                {
                    Button s = (Button)sender;
                    int    propertytypeId = int.Parse(s.ID.Replace("propertytype", ""));

                    cms.businesslogic.propertytype.PropertyType.GetPropertyType(propertytypeId).delete();

                    ent.GenericPropertyTypes.Controls.Clear();
                    ent.loadGenericPropertyTypesOnPane();

                    BasePages.BasePage bp = (BasePages.BasePage) this.Page;
                    bp.speechBubble(BasePages.BasePage.speechBubbleIcon.info, ui.Text("speechBubbles", "contentTypePropertyTypeDeleted", null), "");
                    ent.OnPropertyTypeDelete(this, new System.EventArgs());
                }
            private void AddPropertyType(object sender, System.EventArgs e)
            {
                if (NameTxt.Text.Trim() != "" && AliasTxt.Text.Trim() != "")
                {
                    string[] info = { NameTxt.Text, DataTypeDDL.SelectedItem.Value };
                    ctctrl.prnt.speechBubble(BasePages.BasePage.speechBubbleIcon.info, ui.Text("speechBubbles", "contentTypePropertyTypeCreated", null), ui.Text("speechBubbles", "contentTypePropertyTypeCreatedText", info, null));
                    _dt.AddPropertyType(cms.businesslogic.datatype.DataTypeDefinition.GetDataTypeDefinition(int.Parse(DataTypeDDL.SelectedValue)), AliasTxt.Text, NameTxt.Text);

                    if (int.Parse(TabDDL.SelectedValue) != 0)
                    {
                        _dt.SetTabOnPropertyType(_dt.getPropertyType(AliasTxt.Text), int.Parse(TabDDL.SelectedValue));
                    }
                    ctctrl.GenericPropertyTypes.Controls.Clear();
                    ctctrl.loadGenericPropertyTypesOnPane();
                    NameTxt.Text  = "";
                    AliasTxt.Text = "";
                    // fire event to tell that a new propertytype is created!!
                    ctctrl.OnPropertyTypeCreate(this, new System.EventArgs());
                }
                else
                {
                    ctctrl.prnt.speechBubble(BasePages.BasePage.speechBubbleIcon.error, ui.Text("error"), ui.Text("errors", "contentTypeAliasAndNameNotNull", null));
                }
            }