Esempio n. 1
0
 public override void OnUpdated()
 {
     try
     {
         FieldManagement <ImageFieldProperties> .SetFieldProperties(this);
     }
     catch (Exception)
     {
     }
 }
Esempio n. 2
0
        public override void OnAdded(SPAddFieldOptions op)
        {
            //var data = FieldManagement<ImageFieldProperties>.GetFieldProperties(this);


            //if(string.IsNullOrEmpty(data.WebId)){
            //    data.WebId = SPContext.Current.Site.RootWeb.ID.ToString();
            //}
            try
            {
                FieldManagement <ImageFieldProperties> .SetFieldProperties(this);
            }
            catch (Exception ex)
            {
                Utility.LogError(ex);
            }
        }