Go to the documentation of this file.00001 using N2.Engine;
00002 using System;
00003
00004 namespace N2
00005 {
00009 public class CancellableDestinationEventArgs : DestinationEventArgs
00010 {
00011 private bool cancel;
00012 private Func<ContentItem, ContentItem, ContentItem> finalAction;
00013
00014 public CancellableDestinationEventArgs(ContentItem item, ContentItem destination, Func<ContentItem, ContentItem, ContentItem> finalAction)
00015 : base(item, destination)
00016 {
00017 this.finalAction = finalAction;
00018 }
00019
00020 public CancellableDestinationEventArgs(ContentItem item, ContentItem destination)
00021 : base(item, destination)
00022 {
00023 }
00024
00026 public bool Cancel
00027 {
00028 get { return cancel; }
00029 set { cancel = value; }
00030 }
00031
00033 public Func<ContentItem, ContentItem, ContentItem> FinalAction
00034 {
00035 get { return finalAction; }
00036 set { finalAction = value; }
00037 }
00038 }
00039 }