Exemplo n.º 1
0
 void imbtnSave_ServerClick(object sender, EventArgs e)
 {
     Page.Validate();
     if (!Page.IsValid)
     {
         return;
     }
     if (EnumName == string.Empty)
     {
         MetaFieldType type = MetaEnum.Create(txtEnumName.Text.Trim(), txtFriendlyName.Text.Trim(), chkMultiValue.Checked);
         Response.Redirect(String.Format("~/Apps/MetaDataBase/Pages/Admin/EnumView.aspx?type={0}", type.Name));
     }
     else
     {
         MetaDataWrapper.UpdateEnumFriendlyName(EnumName, txtFriendlyName.Text.Trim());
         Response.Redirect(String.Format("~/Apps/MetaDataBase/Pages/Admin/EnumView.aspx?type={0}", EnumName));
     }
 }