Esempio n. 1
0
 protected override void OnCreated(object sender, Storage.Events.NodeEventArgs e)
 {
     base.OnCreated(sender, e);
     if (_successfulFormCreation)
     {
         string page    = HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority);
         var    backUrl = HttpContext.Current.Request.Params["back"];
         var    link    = string.Concat(page, RegistrationForm.Path, "?action=ManageFields", "&back=", backUrl);
         HttpContext.Current.Response.Redirect(link);
     }
 }
Esempio n. 2
0
        protected override void OnModified(object sender, Storage.Events.NodeEventArgs e)
        {
            base.OnModified(sender, e);

            var image = sender as Image;

            if (image == null)
            {
                return;
            }

            // refresh image width/height than save the content again
            if (MustRefreshDimensions(image, e.CustomData))
            {
                image.Save(SavingMode.KeepVersion);
            }
        }
Esempio n. 3
0
        protected override void OnCreated(object sender, Storage.Events.NodeEventArgs e)
        {
            base.OnCreated(sender, e);

            SendNotification();
        }
Esempio n. 4
0
 protected override void OnCreated(object sender, Storage.Events.NodeEventArgs e)
 {
     base.OnCreated(sender, e);
     RefreshExpenseClaim();
 }
Esempio n. 5
0
        //============================================================== Overrides

        protected override void OnDeletedPhysically(object sender, Storage.Events.NodeEventArgs e)
        {
            base.OnDeletedPhysically(sender, e);
            RefreshExpenseClaim();
        }
Esempio n. 6
0
 protected virtual void OnPermissionChanged(object sender, NodeEventArgs e)
 {
 }
Esempio n. 7
0
 protected virtual void OnNodeDeletedPhysically(object sender, NodeEventArgs e)
 {
 }
Esempio n. 8
0
 protected virtual void OnNodeModified(object sender, NodeEventArgs e)
 {
 }
Esempio n. 9
0
 protected virtual void OnNodeCreated(object sender, NodeEventArgs e)
 {
 }
Esempio n. 10
0
        internal static void FireOnPermissionChanged(EventHandler <NodeEventArgs> Created, Node sender, NodeEventArgs e, List <Type> disabledObservers)
        {
            InvokeEventHandlers <NodeEventArgs>(Created, sender, e);
            var observers = NodeTypeManager.Current.NodeObservers;

            if (observers == null)
            {
                return;
            }
            if (disabledObservers == null)
            {
                foreach (NodeObserver observer in observers)
                {
                    observer.OnPermissionChanged(sender, e);
                }
            }
            else
            {
                foreach (NodeObserver observer in observers)
                {
                    if (!disabledObservers.Contains(observer.GetType()))
                    {
                        observer.OnPermissionChanged(sender, e);
                    }
                }
            }
        }
Esempio n. 11
0
        internal static void FireOnNodeDeletedPhysically(EventHandler <NodeEventArgs> DeletedPhysically, Node sender, NodeEventArgs e, List <Type> disabledObservers)
        {
            InvokeEventHandlers <NodeEventArgs>(DeletedPhysically, sender, e);
            var observers = NodeTypeManager.Current.NodeObservers;

            if (observers == null)
            {
                return;
            }
            if (disabledObservers == null)
            {
                foreach (NodeObserver observer in observers)
                {
                    observer.OnNodeDeletedPhysically(sender, e);
                }
            }
            else
            {
                foreach (NodeObserver observer in observers)
                {
                    if (!disabledObservers.Contains(observer.GetType()))
                    {
                        observer.OnNodeDeletedPhysically(sender, e);
                    }
                }
            }
        }
Esempio n. 12
0
        protected override void OnLoaded(object sender, Storage.Events.NodeEventArgs e)
        {
            base.OnLoaded(sender, e);

            StoreContentListDefinition();
        }